Skip to content

Marzin-bot/gobattlebot

 
 

Repository files navigation

GoBattle.io Discord Bot

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.


Configuration and prerequisites

  • 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.

To start the project, open a terminal at the root of the project and use the following commands:

(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:

  1. Install nodejs and npm:
sudo apt install -y nodejs
sudo apt install -y npm
  1. Check the installation:
node -v
npm -v

⚠️ Note that the minimum node js version for the project must be v22.5.0. ⚠️

  1. Install dependencies:
npm install
  1. Start the bot.
npm start

OR

node --env-file=.env ./src/index.js

If you want to start the project from docker:

Suppose you already have Docker installed on your system:

  1. Build the Docker image:
sudo docker-compose build
  1. Start container:
sudo docker-compose up

Brutal method to stop all containers:

sudo docker-compose down

Screenshot Gallery

About

GoBattle.io Discord Bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.8%
  • Dockerfile 0.2%