-
Get the git repository
git clone https://github.com/edwin-shdw/AbdiBot.git
-
Install packages
npm install
Also, make sure that Node.js 16.9.0 or newer is installed on your machine as
discord.js
requires this. -
Configure environment
Copy and rename the
config.public.json
file toconfig.json
(src/configs/*
) and fill all needed values. This file contains sensitive information and should not be tracked by git. -
Run bot
Start the bot with the start script:
npm start
To make development easier and less painfull you can start the bot in dev mode:
npm run develop
This will start the bot with ts-node and nodemon which will restart the node application whenever file changes are detected. Thanks to ts-node running a new build on each file change is no longer required.
-
Deployment
Command registration to the Discord API can be done with the
deploy
script:npm run deploy
Keep in mind that you will need to run a build before. (At least for the
deploy-commands
script) -
Usefull links
This repository has been archived by the owner on May 19, 2024. It is now read-only.