Skip to content
@bot-ts

Bot.ts

TypeScript Framework for Discord bot creation

What is bot.ts?

bot.ts is a framework for discord.js designed in TypeScript for use in TypeScript. This framework includes all the features you need, here is a list:

  • Package Manager Agnostic: Compatible with npm, yarn, pnpm and more.
  • Multi-Runtime Support: Fully compatible with Node.js, Bun, and Deno.
  • File Handling: Robust file handling using @ghom/handler.
  • CLI File Generation: Easy and powerful file generation using @ghom/bot.ts-cli.
  • Node Aliases: Simplify module resolution with useful path aliases using Node.js 'imports'.
  • Shell Arguments: Handle type-safe shell arguments on textual commands using Yargs.
  • Predefined Commands & Listeners: Ready-to-use owner-only commands and system listeners.
  • Advanced Scripts: Configured advanced dev tools in package.json's scripts and CLI.
  • Database: A built-in Knex-based ORM compatible with PostgreSQL, Mysql and SQLite: @ghom/orm.
  • Pagination: Efficient pagination in the help command.
  • Fastest Experience: Build fast with Rollup and lint fast with Biome.
  • TypeScript Checks: Generated CI/CD using GitHub Actions.
  • Nice Logging: Beautiful console logging using @ghom/logger.
  • Framework Updates: Stay up to date with the integrated updater.
  • Docker: Run with Docker via Dockerfile or compose.yml.
  • Data Caching: Reduce database and API requests with built-in caching.

What's next?

  • Localhost Admin Dashboard
  • Data Caching imporovement
  • Make optional the textual command system
  • Publish the CLI as JSR package
  • Use Mintlify as documentation

Why using bot.ts?

Modern, intuitive, and easy to use. Choosing Bot.ts is choosing control.

  • It's not a lib! You can edit all files easily.
  • All is already configured.
  • I recommend it for learning TypeScript.
  • It is up to date with all technologies.

Hello World

bot.ts hello world

Annexes

Funding

Buy Me A Coffee

Pinned Loading

  1. framework Public template

    TypeScript framework including an advanced command handler, a cli to generate files, a very practical file structure, a yargs based argument system for commands, an advanced Eval command, a Knex ba…

    TypeScript 27 3

  2. cli Public

    CLI to make Discord bots in TypeScript quickly using bot.ts framework.

    TypeScript 4

Repositories

Showing 5 of 5 repositories