A Discord bot written in C++ designed to monitor a Project Zomboid server with various functionalities accessible via slash commands. it uses Rcon Protocol to get all the data related. Feel free to modify it as you want
"I love creating unnecessary and over-complicated tools that only used a handful of times, maybe less than that..."
- Roll 1d100 and face the consequences or your luck inside the Zomboid server.
- Get detailed information about the Project Zomboid server.
- Check for updates on installed mods.
- Display the world map of the Project Zomboid server.
- Request access to the server to the admins.
- Generate a 2FA code valid for 2 minutes for administrators to manually restart the bot or the server.
- Administrators can trigger a bot reset by entering a 6-digit code.
- Administrators can trigger a server reset by entering a 6-digit code.
To use the bot, simply type the corresponding slash command followed by any additional parameters if required.
/dice
: Roll dice(1d100) and get the consequences in the server. (I still working to request the username and set a cooldown time to use this command)/serverstatus
: Get server status./checkmods
: Check for mod updates./map
: Display the server's world map./access
: Request server access./tfa
: Generate a 2FA code./resetbot [6-digit code]
: Reset the bot (admin only)./resetserver [6-digit code]
: Reset the server (admin only)./tengolag
: Shows the users how to configure Project Zomboid to use more RAM./players
: How many players are currently connected to the server
- Clone the repository.
- Install the required Libraries*.
- Set up environment variables for your Discord bot token and other necessary configurations.
- Compile the bot using g++.
- Execute the bot.