F---ing Noodlederps
This commit is contained in:
parent
fb527e7d2d
commit
147398f8bc
|
@ -1,12 +1,11 @@
|
|||
from util import hook
|
||||
import urllib
|
||||
|
||||
@hook.command(autohelp=False, input=None, notice=None, bot=None)
|
||||
def mccheck(inp):
|
||||
@hook.command(autohelp=False)
|
||||
def mccheck(inp, bot=None):
|
||||
".mccheck - Attempts to log in to minecraft"
|
||||
username = bot.config["api_keys"]["mc_user"]
|
||||
password = bot.config["api_keys"]["mc_pass"]
|
||||
notice(username + " " + password)
|
||||
login = urllib.urlopen("https://login.minecraft.net/?user="+username+"&password="+password+"&&version=13").read()
|
||||
if username in login:
|
||||
return "Attempting to connect to Minecraft login servers... Login servers appear to be online!"
|
||||
|
|
Reference in a new issue