rfalias / project_zomboid_bot

Discord bot for managing your PZ server.
18 stars 7 forks source link

[SUGGESTION] Message to Server ON/OFF #1

Closed duhnunes closed 2 years ago

duhnunes commented 2 years ago

Hello,

There are some bots that create counters as if it were a category: https://i.imgur.com/xPVelwI.png

Your bot could add one of these with "Status: ON(green)/OFF(red)" to identify the PZ server. And when the server is started (ON), a message in some #channel is sent to alert that the server is on again.

OFF: I can translate if you add a file translation/EN.json (or other extension). if you think about adapting it to other languages, of course. And thanks you for the bot! (:

rfalias commented 2 years ago

I added a scheduled task that will poll the server every 20 seconds and check if it's running. If it is, it will change the bots status to '{survivorcount} survivors online'. If the server is detected as offline, the bot status will change to 'Server offline'

I'll look into having it change some sort of channel name for a status.