minerbot/sugrocks.py

8 lines
151 B
Python
Raw Permalink Normal View History

2018-06-26 00:12:53 +00:00
import requests
def doMethod(m):
return requests.get("https://api.sug.rocks/{}.json".format(m)).json()
def schedule():
return doMethod("schedule")