vervangt ini file met dotenv
continuous-integration/drone/push Build is failing

Maakt het makkelijker om te testen, en is sowieso betere manier denk ik
This commit is contained in:
2022-11-14 16:18:42 +01:00
parent da7262307d
commit 2c69b13f3d
7 changed files with 25 additions and 57 deletions
+3 -3
View File
@@ -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: