This Discord bot is a community project initiated by Kuwazy#703 and provides Discord users with utility commands related to the MMORPG GoBattle.io. The door is open to all potential contributors. The project is now managed by Shinobit.
- You must have a Discord app that you have previously created in the Discord Developer Portal.
- You also need to have nodejs v22 or higher installed on your server.
- You must have the application token and configure the
.env
file accordingly.
(Make sure you have set the environment variables correctly in the .env
file.)
The .env
file must be created manually at the root of the project and should look like this:
TOKEN = "token_discord_app"
# The GUILD_ADMIN_ID variable gives certain administrator privileges to the specified guilds.
GUILD_ADMIN_ID = ["380588354934276097"]
Assume you are on a Linux environment:
- Install nodejs and npm:
sudo apt install -y nodejs
sudo apt install -y npm
- Check the installation:
node -v
npm -v
- Install dependencies:
npm install
- Start the bot.
npm start
OR
node --env-file=.env ./src/index.js
Suppose you already have Docker installed on your system:
- Build the Docker image:
sudo docker-compose build
- Start container:
sudo docker-compose up
Brutal method to stop all containers:
sudo docker-compose down