Open comments for this post
Better Bedrock Support & SRV ports
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.
Open comments for this post
Statuses look good now!
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.
Open comments for this post
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.
Open comments for this post
I finally made the first few commands for the bot!
Two commands were from the tutorial (ping and help) and one “from scratch” (of course with help from the tutorial).
- /craftie-help - tells you all the commands
- /craftie-ping - tells you the ping between the bot and slack
- /craftie-status - tells you the status for a server.
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.