- shows the live-status of your FiveM Server and how many players are currently playing on it
- live-status of the official fivem status and AlleStörungen.de
- A command to get the current fivem status
- Restart detection of your fivem server with the help of your built-in TxAdmin Discord Bot
This is how the live-dashboard message can look like. It gets updated every 8 seconds.
Note: If you just want to have a /fivem
slash command the get the fivem status on your server, you can also just invite my public discord bot to your server rather than running your own instance of it.
Message based commands:
!fivem
show the current fivem status from AlleStörungen.de and status.cfx.re
!toggleuptimevisibility
to toggle the visibility of the uptime in the status message
➥ You must be a server administrator to use this. Otherwise, the bot will not react.
!toggledowndetectorstatus
to toggle the visibility of the FiveM Status from AlleStörungen.de in the status message
➥ You must be a server administrator to use this. Otherwise, the bot will not react.
!togglecfxstatus
to toggle the visibility of the FiveM Status from status.cfx.re in the status message
➥ You must be a server administrator to use this. Otherwise, the bot will not react.
- Python3.8 or higher
- For required python packages see the
requirements.txt
You can install the python packages globally via pip3 install -r requirements.txt
or by creating a virtual environment like so:
# setup virtual environment
python3 -m venv venv
# install python packages into the virtual environment
./venv/bin/pip3 install -r requirements.txt
# run the bot
./venv/bin/python3 bot.py
Rename the config.ini.dist
to config.ini
and configure it.
Just run ./venv/bin/python3 bot.py
in your project directory.
When the bot is running, it will create a log file named latest.log
in the project directory.
I'd recommend running the Bot with systemctl to keep the bot always online. The systemd (.service) file could look like this:
[Unit]
Description=Discord FiveM Dashboard Bot
After=network.target
[Service]
WorkingDirectory=/path_to_project
ExecStart=/path_to_project/venv/bin/python3 bot.py
Type=simple
Restart=always
#User=fivem-dashboard
[Install]
WantedBy=multi-user.target
The Discord Bot needs the following permissions:
- View Channel (Read messages)
- Send Messages
- Embed Links
- Manage Messages
- Read Message History
Be sure to leave a ⭐️ if you like the project and also be sure to contribute, if you're interested! Want to help? Drop me a line or send a PR.