This is a basic setup of a Discord bot using the [sapphire framework][sapphire] written in TypeScript
pnpm install
This example can be run with tsc-watch
to watch the files and automatically restart your bot.
pnpm watch:start
You can also run the bot with pnpm 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.