spaaace
This commit is contained in:
parent
f54f0edff8
commit
33c6ee6f19
1 changed files with 3 additions and 1 deletions
|
@ -17,7 +17,7 @@ def mcstatus(inp):
|
||||||
out = []
|
out = []
|
||||||
# use a loop so we don't have to update it if they add more servers
|
# use a loop so we don't have to update it if they add more servers
|
||||||
yes = []
|
yes = []
|
||||||
no = []
|
no = ['luke']
|
||||||
for server, status in data.items():
|
for server, status in data.items():
|
||||||
if status == "green":
|
if status == "green":
|
||||||
yes.append(server)
|
yes.append(server)
|
||||||
|
@ -25,6 +25,8 @@ def mcstatus(inp):
|
||||||
no.append(server)
|
no.append(server)
|
||||||
if yes:
|
if yes:
|
||||||
out = "\x033\x02Online\x02\x0f: " + ", ".join(yes)
|
out = "\x033\x02Online\x02\x0f: " + ", ".join(yes)
|
||||||
|
if no:
|
||||||
|
out += " "
|
||||||
if no:
|
if no:
|
||||||
out += "\x034\x02Offline\x02\x0f: " + ", ".join(no)
|
out += "\x034\x02Offline\x02\x0f: " + ", ".join(no)
|
||||||
return "\x0f" + out.replace(".mojang.com", ".mj").replace(".minecraft.net", ".mc")
|
return "\x0f" + out.replace(".mojang.com", ".mj").replace(".minecraft.net", ".mc")
|
||||||
|
|
Reference in a new issue