monorepo/apps/bot
2024-12-09 12:01:58 +00:00
..
.sapphire/templates Initial 2024-12-09 12:01:58 +00:00
src Initial 2024-12-09 12:01:58 +00:00
package.json Initial 2024-12-09 12:01:58 +00:00
README.md Initial 2024-12-09 12:01:58 +00:00
sapphire.toml Initial 2024-12-09 12:01:58 +00:00
tsconfig.json Initial 2024-12-09 12:01:58 +00:00
tsup.config.ts Initial 2024-12-09 12:01:58 +00:00

TypeScript Complete Sapphire Bot example

This is a more complete setup of a Discord bot using the sapphire framework written in TypeScript.

It is similar to the starter setup, but adds more data structures and a more complete setup.

How to use it?

Prerequisite

npm install

Development

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

npm run watch:start

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.