This is an updated/modified version of https://github.com/Ramzi-Sah/game-status-discordbot-selfhosted
- Fixed gamedig parsing (rank, name, time, score, ping)
- Fixed embed formatting
- Fixed pathing to graph
- Added additional options to
config.json
- Added sorting by score or ping
- Added header padding length option (regardless, headers will no longer wrap around)
- Fixed 'rank' to always sort from '01' onward regardless of sort option chosen
- Fixed time parsing to make sure it's a valid number
- Many other code changes/fixes/refactoring
- Added multiple instances (config entry)
##How to install?
Windows...
- Make sure
node.js
is installed on the system (https://nodejs.org) - Unpack the files to a directory of your choice.
- Open a cmd terminal and change directory to the unpacked files.
- In the cmd terminal, type -> npm install
- Configure your
config.json
file with your settings. - To launch the bot, type ->
bot.bat
(ornode index.js
)
Note, for the in built http server to function (graph enabled), it needs to be accessible remotely (eg, allowed via firewall + port forwarding)
Now with the addition of multiple instances, first launch the bot with all "serverStatusMessageID" entries as "". The console window will output what to paste in the config.json once the message ID is returned. Once your config.json is updated and saved, close the bot and relaunch it.