Custom DiscordBot made for the private BD Discord server. This is just a fun project several teammates work on occasionally in our free time. This is currently only available to those on the server, however a deployable version for anyone to use is planned.
/help
lists the available commands in the current context (Discord server or DM).
To view the description and parameter information for a particular command, initiate a slash command by typing /
followed by the command on a Discord server.
git clone https://github.com/Kyle-Stadelmann/DiscordBot
cd DiscordBot
- Ensure node is installed and
node -v
matches the version in.nvmrc
(can usenvm use
ornvm use [version]
if nvm is installed) npm install
- Install ffmpeg onto your system and set the system environment variable FFMPEG_PATH to the install location.
cp .env.template .env
- Fill out fields in
.env
file with API keys/secrets
In the development environment, the development bot specified in the .env
file (DEV_BOT_TOKEN) will be used instead of the production one. Additionally, certain rules such as removing cooldowns are activated to make development smoother.
npm run start
or npm run dev
for hot-reload
In the production environment, the bot is launched using transpiled javascript in order to use less resources.
npm run build
npm run start-prod
Scripts in src/scripts
can be executed separately from the bot. These can be executed using tsx.
npx tsx [script-name]