mirror of
https://github.com/RGBCube/minearchy-bot
synced 2025-07-27 08:57:46 +00:00
'Refactored by Sourcery'
This commit is contained in:
parent
c0e06d928b
commit
4f98f301b3
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ class MinecraftServer(
|
|||
onlineJ = requests.get(f"https://api.mcsrvstat.us/2/{self.bot.server.java.ip}") #
|
||||
|
||||
if status.players.online == 0:
|
||||
message = f"Nobody is on the server at the moment."
|
||||
message = "Nobody is on the server at the moment."
|
||||
else:
|
||||
message = f"The Minecraft server has {status.players.online} player(s) online."
|
||||
if onlineJ.json()["online"] and status.players.online == 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue