Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
b194bfb
first commit
Marzin-bot Jun 10, 2024
121acb6
readme update
Marzin-bot Jun 10, 2024
fb6e65d
Create .env
Marzin-bot Jun 10, 2024
9aa9c33
readme update
Marzin-bot Jun 10, 2024
2d71d8e
Create docker-compose.yml
Marzin-bot Jun 10, 2024
579295f
Add files via upload
Marzin-bot Jun 10, 2024
3c1fcf8
Create .dockerignore
Marzin-bot Jun 10, 2024
1a51395
Update README.md
Marzin-bot Jun 10, 2024
517b2f8
Update README.md
Marzin-bot Jun 10, 2024
2ca6a02
Update Dockerfile
Marzin-bot Jun 11, 2024
94e5d35
Update README.md
Marzin-bot Jun 11, 2024
aa795d9
Update Dockerfile
Marzin-bot Jun 11, 2024
d7eeea0
Update README.md
Marzin-bot Jun 11, 2024
99e542a
Update README.md
Marzin-bot Jun 11, 2024
1e25284
Update README.md
Marzin-bot Jun 11, 2024
384c119
update
Marzin-bot Jun 11, 2024
45d2723
update
Marzin-bot Jun 11, 2024
b0da2fe
update
Marzin-bot Jun 11, 2024
3ec8a8e
readme update
Marzin-bot Jun 11, 2024
6a95b60
bruh
Marzin-bot Jun 11, 2024
c524f06
fixed bugs in the “/user info” and “item info” command
Marzin-bot Jun 11, 2024
8b1a98a
fixed non-absolut file path bugs
Marzin-bot Jun 11, 2024
a9bdf93
The “asset info” command has been improved. Images no longer appear t…
Marzin-bot Jun 11, 2024
5bbb4d7
aaaaaaa
Marzin-bot Jun 12, 2024
41822c5
update ultralist.json
Marzin-bot Jun 12, 2024
ce7d6e6
removing canvas.js dependency
Marzin-bot Jul 8, 2024
579c861
Updated leaderboard formatting for better readability.
Marzin-bot Jul 15, 2024
9c0253b
reformat command messages.
Marzin-bot Jul 23, 2024
f7c3bc1
Create .env
Marzin-bot Jul 23, 2024
3bba6eb
Adds layout of command results (buttons) and adding emojis.
Marzin-bot Jul 30, 2024
64af68c
add login
Marzin-bot Aug 2, 2024
dce4794
fix login bugs
Marzin-bot Aug 3, 2024
a980a09
fix readme.md nodejs version
Marzin-bot Aug 3, 2024
6d9c4ea
Create .env
Marzin-bot Aug 3, 2024
0653fa6
added friend orders and optimized embeds layout.
Marzin-bot Aug 5, 2024
c0acf53
Merge branch 'main' of https://github.com/Marzin-bot/gobattlebot
Marzin-bot Aug 5, 2024
198c782
update help command
Marzin-bot Aug 6, 2024
f7f00cf
aaaaaaaa
Marzin-bot Aug 6, 2024
f6e7a5c
bug token correction
Marzin-bot Aug 6, 2024
fdc4e7d
aaaaaaaaa
Marzin-bot Aug 6, 2024
9c74e8e
add screenshot gallery
Marzin-bot Aug 6, 2024
3e0b0be
add screenshot gallery in readme
Marzin-bot Aug 6, 2024
c4c65da
ranking emoji correction
Marzin-bot Aug 7, 2024
df9622a
add the skill improvement buttons on the user profile. + fixed a bug …
Marzin-bot Aug 8, 2024
e258d22
aaaaaaaaaaa
Marzin-bot Aug 8, 2024
ab3c5ce
Fixed bug when updating user profile after purchasing skill points.
Marzin-bot Aug 8, 2024
0d045e0
Fixed bug when updating user profile after purchasing skill points.
Marzin-bot Aug 8, 2024
fae3028
minor modification of integrations.
Marzin-bot Aug 9, 2024
85c0f57
del bug
Marzin-bot Aug 10, 2024
495c5af
Add a skill point purchase confirmation button
Marzin-bot Aug 17, 2024
00c0e86
add some details in the readme file.
Marzin-bot Aug 19, 2024
df52810
new command + fix errors
Marzin-bot Aug 23, 2024
10fa321
add user install in /info
Marzin-bot Aug 23, 2024
b7dc475
add new command (/install_link)
Marzin-bot Aug 23, 2024
ed7da27
fix error
Marzin-bot Aug 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
npm-debug.log
.env
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Sqlite
sqlite
sqlite3
*.sqlite
*.sqlite3

# Logs
logs
*.log
Expand Down
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Nodejs
FROM node:22.5.1

WORKDIR /app

COPY package*.json ./

# Remove any existing node_modules and package-lock.json to ensure a clean install.
RUN rm -rf node_modules package-lock.json

# Install Node.js dependencies.
RUN npm install --build-from-source

COPY . .

CMD ["npm", "start"]
81 changes: 79 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,79 @@
# gobattlebot
GoBattle.io Discord Bot
# 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](https://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:

```env
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:
```bash
sudo apt install -y nodejs
sudo apt install -y npm
```

2. Check the installation:
```bash
node -v
npm -v
```
⚠️ Note that the minimum node js version for the project must be v22.5.0. ⚠️

3. Install dependencies:
```bash
npm install
```

4. Start the bot.
```bash
npm start
```
OR
```bash
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:
```bash
sudo docker-compose build
```

2. Start container:
```bash
sudo docker-compose up
```

Brutal method to stop all containers:
```bash
sudo docker-compose down
```

## Screenshot Gallery
<p align="center">
<img src="./screenshot_gallery/ranking_king.png">
<img src="./screenshot_gallery/user_info.png">
<img src="./screenshot_gallery/speedrun.png">
<img src="./screenshot_gallery/item_ultrarare_drop.png">
<img src="./screenshot_gallery/user_friend_list.png">
<img src="./screenshot_gallery/info.png">
</p>
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: "3.8"

services:
bot:
build: .
container_name: gobattleio_bot
env_file:
- .env
volumes:
- .:/app
command: ["npm", "start"]
restart: unless-stopped
Loading