Minecraft Server Status Slack Bot
- 4 Devlogs
- 4 Total hours
This bot isn't slacking off, it replies to messages 24/7! This slack bot fetches the status of a minecraft server using the mcstatus.io API.
This bot isn't slacking off, it replies to messages 24/7! This slack bot fetches the status of a minecraft server using the mcstatus.io API.
I changed a lot of the code now to use a java server’s SRV port if it’s defined, so now the server icon’s display right if you don’t define a port. I also made servers without an icon (due to an error or it being a bedrock server) display the default server icon (pack.png in BW).
I also started making a new command, /craftie-player which will look up player info like their UUID and skin.
I updated the status command to use a slack block kit instead of plain text so now it looks much cleaner. This also allows me to implement more features later like maybe a reload button.
I also fixed a bug causing the bot to freak out if the server being queried was offline because soms data wouldn’t be available then and I was requesting it at the wrong time. Now it just displays “Unavailable” for those stats.
I updated the bot to show many more statistics such as the mincraft version and MOTD. It also shows the amount of online players and the specific players that are online if the server announces it.
Two commands were from the tutorial (ping and help) and one “from scratch” (of course with help from the tutorial).
It is now just saying “Server Online” if the response.online == true and “Server Offline” if false. Next I want to implement custom parameters so you can select what server you want to check the status for. Then I also want to make the status message look nicer.