Don't read the config twice

It's already loaded above lol
This commit is contained in:
Folfy Blue 2021-08-27 07:09:52 +02:00 committed by GitHub
parent c1af742c73
commit 9078a583e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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')