aura/apps/bot
2025-04-26 02:29:14 +01:00
..
src first commit 2025-04-26 02:29:14 +01:00
.prettierignore first commit 2025-04-26 02:29:14 +01:00
.sapphirerc.yml first commit 2025-04-26 02:29:14 +01:00
package.json first commit 2025-04-26 02:29:14 +01:00
README.md first commit 2025-04-26 02:29:14 +01:00
tsconfig.json first commit 2025-04-26 02:29:14 +01:00
tsup.config.ts first commit 2025-04-26 02:29:14 +01:00

TypeScript Sapphire Bot example with Tsup

This is a basic setup of a Discord bot using the sapphire framework written in TypeScript

How to use it?

Prerequisite

npm install

Development

This example can be run with tsup to watch the files and automatically restart your bot.

npm run dev

Production

You can also run the bot with npm dev, this will first build your code and then run node ./dist/index.js. But this is not the recommended way to run a bot in production.

License

Dedicated to the public domain via the Unlicense, courtesy of the Sapphire Community and its contributors.