overhauled help
This commit is contained in:
parent
0fdf370733
commit
c58192f72c
58 changed files with 124 additions and 117 deletions
|
@ -3,7 +3,7 @@ import string
|
|||
|
||||
@hook.command(autohelp=False)
|
||||
def mcstatus(inp, bot=None):
|
||||
".mcstatus -- Attempts to log in to minecraft"
|
||||
".mcstatus -- Checks the status of Minecraft's login servers."
|
||||
username = bot.config.get("api_keys", {}).get("mc_user", None)
|
||||
password = bot.config.get("api_keys", {}).get("mc_pass", None)
|
||||
if password is None:
|
||||
|
@ -13,11 +13,11 @@ def mcstatus(inp, bot=None):
|
|||
if username.lower() in login.lower():
|
||||
return "Minecraft login servers appear to be online!"
|
||||
else:
|
||||
return "Minecraft login servers appear to be offline :("
|
||||
return "Minecraft login servers appear to be offline!"
|
||||
|
||||
@hook.command
|
||||
def mclogin(inp, say=None):
|
||||
".mclogin <username> <password> -- Attempts to log in to minecraft using the provided username and password, this is NOT logged."
|
||||
".mclogin <username> <password> -- Attempts to log in to Minecrat with <username> and <password> (This is NOT logged)."
|
||||
inp = inp.split(" ")
|
||||
username = inp[0]
|
||||
password = inp[1]
|
||||
|
@ -26,14 +26,14 @@ def mclogin(inp, say=None):
|
|||
if username.lower() in login.lower():
|
||||
return "I logged in with " + username
|
||||
else:
|
||||
return "I couldn't log in using " + username + ", either the password is wrong or minecraft login servers are down D:"
|
||||
return "I couldn't log in using " + username + ", either the password is wrong or minecraft login servers are down!"
|
||||
|
||||
@hook.command
|
||||
def mcpaid(inp):
|
||||
".mcpaid <username> -- Checks if a user has a premium Minecraft account"
|
||||
".mcpaid <username> -- Checks if <username> has a premium Minecraft account."
|
||||
login = http.get("http://www.minecraft.net/haspaid.jsp?user=" + inp)
|
||||
if "true" in login:
|
||||
return "The account \'" + inp + "\' is a premium Minecraft account! :D"
|
||||
return "The account \'" + inp + "\' is a premium Minecraft account!"
|
||||
else:
|
||||
return "The account \'" + inp + "\' is not a premium Minecraft account :("
|
||||
return "The account \'" + inp + "\' is not a premium Minecraft account!"
|
||||
|
||||
|
|
Reference in a new issue