Discord bot Templete.
npm install
After installing, edit temp.env
.
PREFIX=
The text prefix used for text commands.TOKEN=
Bot token here.DB_*=
Corresponding DB to use.OWNER=
Your Discord ID.CLIENT_ID=
Discord ID of the bot account.TEST_GUILD_ID=
Primary Server ID.*_LOG=
The location for the corresponding log to be dumped.STREAM_CHAT=
Chat channel ID for/say
to only be accepted from.
Once done rename it to .env
then build with typescript and run the bot.
npm run start
Do the above usage setup at least once, then install the dev dependencies.
npm install --dev
- Events are stored in
./events
- Slash commands, Context Menus (etc, etc) are all in
./interactions
. - Context Menus are separated by
user
ormessage
context folders.
Nodemon (v3.0.1) is included by the devDependency
run it with:
npm run dev
The debugger is already setup and can be used with Run and Debug
or the default bind F5
.