Skip to main content
0.5.1 Five new templates to start from

The Discord framework

A folder of files becomes a fast, type-safe Discord bot. Nothing to configure, nothing to register, nothing to install to run it.

my-bot
Explorer
src/commands/ping.ts
Terminal
pnpm dev
✓ Connected to My Server as my-bot
â„č Intents computed from your files: GUILDS, GUILD_MEMBERS
✓ 2 commands, 1 event, 1 component loaded
↻ Reloaded in 12 ms, 2 commands, 1 event, 1 component loaded
# bot-testing
Message #bot-testing
0
100%
v10
1
src/commands/ping.ts
src/events/welcome.ts

That is all. /ping is registered on Discord, the bot asks for the Server Members intent because a declaration needs it, and member and guild are typed from name, without you writing a type.

Create

Run pnpm create chapterjs, pick a folder and a template. Dependencies are installed for you.

Configure

Put BOT_TOKEN and DEV_GUILD_ID in .env. Anything missing is explained before the bot connects.

Run

Start pnpm dev. Your bot joins your test server and reloads every time you save.

chapterjs devdevelopment
    chapterjs startproduction

      Your bot is one command away.

      Create a project, add your token, and run it on your test server.