A basic layout for a discord bot using typescript
- Enter a name, version and description in
package.json - In
.env.examplefill in the config values - Remove
.examplefrom.env.example - Remove unneeded intents in
src/config.ts - install npm packages using
npm i - Update the
README.mdto fit the project
The bot-layout-ts discord bot
- In
.env.examplefill in the config values - Remove
.examplefrom.env.example - Now move onto
starting!
- Make sure you have docker and docker compose installed
- Open a terminal and navigate to the bots folder
- Run
docker compose up -dand the bot should startup - The bot is now ready for use
npm run lintLint the entire projectnpm run fixFix the project according to the linternpm run buildBuild both the bot and scriptsnpm run startStart the compiled botnpm run devStart the bot and watch for changesnpm run new:taskCreate a new task filenpm run new:eventCreate a new event handler filenpm run new:interactionCreate a new interaction file