This commit is contained in:
Fletcher Boyd 2013-09-04 21:36:35 +08:00
parent f54f0edff8
commit 33c6ee6f19

View file

@ -17,7 +17,7 @@ def mcstatus(inp):
out = []
# use a loop so we don't have to update it if they add more servers
yes = []
no = []
no = ['luke']
for server, status in data.items():
if status == "green":
yes.append(server)
@ -25,6 +25,8 @@ def mcstatus(inp):
no.append(server)
if yes:
out = "\x033\x02Online\x02\x0f: " + ", ".join(yes)
if no:
out += " "
if no:
out += "\x034\x02Offline\x02\x0f: " + ", ".join(no)
return "\x0f" + out.replace(".mojang.com", ".mj").replace(".minecraft.net", ".mc")