SRB2DiscordBot

[Re-Usable] SRB2DiscordBot 1.0

Read the Submission Rules before posting otherwise the mod may be rejected if it doesn't comply with these rules. (Updated February 10, 2023)
  1. I'm aware of the current Submission Rules
Author does not approve the use of his content in other addons without his permission
  1. No
SRB2DiscordBot
SRB2DiscordBot
SRB2DiscordBot

Have a chat with SRB2 players on Discord!

Emoji icons here -> Google Drive
What the bot is able to do:
  • translate the chat from the game in the discord and let communicate outside the game;
  • Run the server with parameters, the parameters are specified in the .cfg file;
  • Restart the server with a fatal error or at closing the server;
  • Display server statistics (map, image (url), map number, number of emeralds, number of players, map time, server time, list of players and their statistics).
  • Display messages in the console with timecodes;
  • write log messages from the game and from Discord in the log file;
  • Returns the current map after server restart;
  • Save game logs in another folder (because of an auto restart, logs are not saved in the logs folder);
  • Execute commands such as: csay, kick, ban, map, exitlevel, restart in Discord;
  • Autorestart on the desired map or through the number of completed levels, changes parameters if this is configured in the autorestart.cfg;
  • Pause the server if there are no players on the server.

SRB2 command table

NameDescriptionPossible ValueDefault Value
dbot_joinquitNotifies in Discord if a player joins or leaves the game for any reason.CV_OnOffOn
dbot_autopausePauses the game if the server has no players.CV_OnOffOn
dbot_nospamchatPuts Calmdown on second for messages.CV_OnOffOff
dbot_messagedelayDelays messages and sends messages after two seconds.CV_OnOffOn

CFG files
  • autorestart.cfg - configures autorestart and when to change server parameters;
  • commandperms.cfg - configures command permissions;
  • config.cfg - it contains the token and other standard settings;
  • dontsavemap.cfg - ignores the return of levels on maps in the file the next time you start the server;
  • emotes.cfg - configures emoji for information channel;
  • serverparameters\parameters.cfg - parameters for the server, they will not change, unless you edit the file;
  • serverparameters\pcfg<X>.cfg - parameters for the server, if you have configured restart they will change.

Video Guide
Source code - GitHub
Author
Sirexer
Downloads
771
Views
3,936
First release
Last update
Rating
5.00 star(s) 1 ratings

More addons from Sirexer

Share this addon

Latest reviews

Tsuko_G98
  • Tsuko_G98
  • 5.00 star(s)
  • Version: 1.0
A very useful executable, really, I am impressed with your work, 5 stars well deserved. :)
Top