This guide will help you set up your Discord bot. Follow these steps to get your bot running smoothly.
- Fork & clone the repository
git clone https://github.com/MBA2022/S-Bot
- Make sure your
node.js&npmare up to date - Run
npm installto install all dependencies - Update Start Script in
package.jsonreplace the start script with nodemon for automatic updates when you make changes to the code:
"scripts": {
"start": "nodemon index.js"
}- Update the developer IDs in the index file with your own IDs.
const developers = ['DeveloperID_1', 'DeveloperID_2'];- Create a
.envfile then add the Variables as shown:
TOKEN = BOT_TOKEN
CLIENTID = APP _ID
GUILDID = DEVELOPMENT_SERVER
BOT_DM_WEBHOOK_URL = WEBHOOk_URL To deploy this project you have to add the bot to your discord server then run:
npm startthen if you want to edit the code you don't have to restart the bot manually