Merge pull request #4 from FolfyBlue/patch-1

Don't read the config twice
This commit is contained in:
elmon 2021-12-23 21:42:02 +01:00 committed by GitHub
commit e81d8e71d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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