Skip to content
This repository has been archived by the owner on Feb 9, 2025. It is now read-only.

KirotheFoxy/Discord-Bot

Repository files navigation

Discord Bot

Discord bot Templete.

Nodejs-Version TS-Node-Version TypeScript-Version Discordjs-Version

Installation

npm install

Usage

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

Development setup

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 or message context folders.

Nodemon

Nodemon (v3.0.1) is included by the devDependency run it with:

npm run dev

Visual Studio Code

The debugger is already setup and can be used with Run and Debug or the default bind F5.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published