mirror of
https://github.com/TotalFreedomMC/TotalFreedomBot.git
synced 2024-12-22 15:44:57 +00:00
Merge pull request #4 from FolfyBlue/patch-1
Don't read the config twice
This commit is contained in:
commit
e81d8e71d7
1 changed files with 1 additions and 2 deletions
|
@ -37,8 +37,7 @@ class Events(commands.Cog):
|
||||||
print(
|
print(
|
||||||
f'[{str(datetime.utcnow().replace(microsecond=0))[11:]} INFO]: [TELNET] Bot logged into Telnet as: {self.bot.telnet_object.username}')
|
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 = config['reaction_roles']
|
||||||
self.bot.reaction_roles = reaction_data['reaction_roles']
|
|
||||||
|
|
||||||
print(f'[{str(datetime.utcnow().replace(microsecond=0))[11:]} INFO]: [Client] {self.bot.user.name} is online.')
|
print(f'[{str(datetime.utcnow().replace(microsecond=0))[11:]} INFO]: [Client] {self.bot.user.name} is online.')
|
||||||
game = discord.Game('play.totalfreedom.me')
|
game = discord.Game('play.totalfreedom.me')
|
||||||
|
|
Loading…
Reference in a new issue