NooberPro / minecraft-discord-bot

A feature-rich and highly customizable Discord bot that provides information about your Minecraft server.
https://nooberpro.gitbook.io
MIT License
23 stars 13 forks source link

Bot thinks server is online #21

Open 4ysg opened 1 month ago

4ysg commented 1 month ago

Hello, I love this bot and I'm using it for a Minecraft server I have with my friends at school. The main thing I wanted when I used this bot is for it to automatically tell people when the server is online or offline. When I use the command /status, it shows this image:Screenshot_20241019_221536_Discord.jpg Also, I do not know how to make it so the bot makes a channel that automatically renames itself from online to offline (I enabled it in config and added the guild id and channel id)

4ysg commented 1 month ago

It shows on the top that it is online, but it says it's offline in small text. I was hoping it could have a red circle and say 🔴 OFFLINE

NooberPro commented 1 month ago

Sorry for late response. I was bit busy. Please download the newer version where i improve this online checking function of bot and then do the following.

This issue happens with free hosting providers like Falixnodes or Aternos. They display ads in the MOTD when the server is offline, which confuses the bot into thinking it's active.

To fix this, go to the config file, find isOnlineCheck under the autoChangeStatus section, and set it to true (isOnlineCheck: true). This should solve the problem.

Hope this helps! 😊

NooberPro commented 1 month ago

If the issue is fixed please consider to close this GitHub issue.

4ysg commented 1 month ago

I will close it once I see if it works or not.