Docker Image: milan090/xbot:latest
Prerequisites
- Make sure to have Node 12 Or Above installed
- Make a bot application on discord developer portal and enable privilaged intents (check both PRESENSE INTENT and SERVER MEMBER INTENT)
npm install
- Install mongodb on your device
- Make .env config.json files in ./src folder. (Use the example files as templates)
npm run dev
to start the testing environment
- Install docker-compose on your server
- Copy the docker-compose file onto it
- Create a .env file in root directory, and paste the following in it. (replace the DISCORD_API_KEY)
DISCORD_API_KEY=***************
MONGO_URI=mongodb://mongo/xbot
- Custom commands can be created in the /src/commands folder as src/commands//<COMMAND_NAME>.ts