A basic layout for a discord bot using typescript
- Enter a name, version and description in
package.json
- In
.env.example
fill in the config values - Remove
.example
from.env.example
- Remove unneeded intents in
src/config.ts
- install npm packages using
npm i
- Update the
README.md
to fit the project
The bot-layout-ts discord bot
- In
.env.example
fill in the config values - Remove
.example
from.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 -d
and the bot should startup - The bot is now ready for use
npm run lint
Lint the entire projectnpm run fix
Fix the project according to the linternpm run build
Build both the bot and scriptsnpm run start
Start the compiled botnpm run dev
Start the bot and watch for changesnpm run new:task
Create a new task filenpm run new:event
Create a new event handler filenpm run new:interaction
Create a new interaction file