From 9078a583e2d560fb3fe281f42ecb59b9575788e3 Mon Sep 17 00:00:00 2001 From: Folfy Blue Date: Fri, 27 Aug 2021 07:09:52 +0200 Subject: [PATCH] Don't read the config twice It's already loaded above lol --- events.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/events.py b/events.py index 9c4f286..6824197 100644 --- a/events.py +++ b/events.py @@ -37,8 +37,7 @@ class Events(commands.Cog): print( f'[{str(datetime.utcnow().replace(microsecond=0))[11:]} INFO]: [TELNET] Bot logged into Telnet as: {self.bot.telnet_object.username}') - reaction_data = read_json('config') - self.bot.reaction_roles = reaction_data['reaction_roles'] + self.bot.reaction_roles = config['reaction_roles'] print(f'[{str(datetime.utcnow().replace(microsecond=0))[11:]} INFO]: [Client] {self.bot.user.name} is online.') game = discord.Game('play.totalfreedom.me')