2015-11-03 01:28:49 +00:00
|
|
|
from util import hook
|
|
|
|
|
|
|
|
import requests
|
|
|
|
|
|
|
|
@hook.command
|
|
|
|
def minecraft(pls):
|
|
|
|
r = requests.get("http://xeserv.us/api/minecraft.json")
|
|
|
|
|
|
|
|
data = r.json()
|
|
|
|
|
|
|
|
if not data["online"]:
|
|
|
|
return "fluttershy.yochat.biz is down, oh noes"
|
|
|
|
|
|
|
|
if data["players"] == None:
|
|
|
|
return "fluttershy.yochat.biz has no online players"
|
|
|
|
|
2015-11-04 19:15:20 +00:00
|
|
|
return "fluttershy.yochat.biz has the following players: " + " ".join(data["players"])
|
2015-11-03 01:28:49 +00:00
|
|
|
|
|
|
|
@hook.command
|
|
|
|
def tf2(pls):
|
|
|
|
pass
|