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