Maakt het makkelijker om te testen, en is sowieso betere manier denk ik
This commit is contained in:
+3
-3
@@ -18,8 +18,8 @@ class General(commands.Cog):
|
||||
self.muzak_url = 'https://hdcon-muzak.herokuapp.com'
|
||||
self.r = praw.Reddit(
|
||||
user_agent='StroopwafelBot',
|
||||
client_secret=self.bot.tokens["redditSecret"],
|
||||
client_id=self.bot.tokens["redditId"]
|
||||
client_secret=os.getenv("STROOP_REDDIT_SECRET"),
|
||||
client_id=os.getenv("STROOP_REDDIT_ID")
|
||||
)
|
||||
self.r.read_only = True
|
||||
|
||||
@@ -137,7 +137,7 @@ Namens de directie van Stroopwafel B.V. onze excuses voor dit ongemak.""")
|
||||
@asyncio.coroutine
|
||||
def reboot(self, ctx, password=""):
|
||||
""" Reboot.. """
|
||||
if password == self.bot.passwords["resetpassword"]:
|
||||
if password == os.getenv("STROOP_RESET_PASSWORD"):
|
||||
yield from ctx.channel.send("Rebooting.. brb!")
|
||||
os.execv(sys.executable, ['python3'] + sys.argv)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user