Reset pass is now also ini file
This commit is contained in:
+1
-2
@@ -2,8 +2,7 @@ __pycache__/
|
||||
discord.py-rewrite/
|
||||
tijd/
|
||||
.vs/
|
||||
test.png
|
||||
password.txt
|
||||
test.png
|
||||
UpgradeLog\.htm
|
||||
markov_dict.npy
|
||||
stroopwafel.ini
|
||||
|
||||
+1
-4
@@ -19,8 +19,6 @@ class General(object):
|
||||
client_id=self.bot.tokens["redditId"]
|
||||
)
|
||||
self.r.read_only = True
|
||||
f = open("password.txt","r")
|
||||
self.rebootPW = f.readline()
|
||||
|
||||
def __check(self, ctx): #Todo: Is dit het porno kanaal?
|
||||
return True
|
||||
@@ -81,8 +79,7 @@ class General(object):
|
||||
@asyncio.coroutine
|
||||
def reboot(self, ctx, password=""):
|
||||
""" Reboot.. """
|
||||
print(self.rebootPW)
|
||||
if password == self.rebootPW:
|
||||
if password == self.bot.passwords["resetpassword"]:
|
||||
yield from ctx.channel.send("Rebooting.. brb!")
|
||||
os.execv(sys.executable, ['python3'] + sys.argv)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user