1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 13:02:38 +00:00

Fix equality comparisons for strings

This commit is contained in:
Myned 2020-01-11 02:46:55 -05:00
parent 861259ec01
commit 09c4fc844e
No known key found for this signature in database
GPG key ID: E0C1E07EC22E19C8

View file

@ -44,7 +44,7 @@ async def on_ready():
u.cogs[type(cog).__name__] = cog u.cogs[type(cog).__name__] = cog
print(f'COG : {type(cog).__name__}') print(f'COG : {type(cog).__name__}')
if u.config['playing'] is not '': if u.config['playing'] != '':
await bot.change_presence(activity=d.Game(u.config['playing'])) await bot.change_presence(activity=d.Game(u.config['playing']))
print('\n> > > > > > > > >' print('\n> > > > > > > > >'
@ -83,7 +83,7 @@ async def on_ready():
u.cogs['Admin'].deleting = True u.cogs['Admin'].deleting = True
bot.loop.create_task(u.cogs['Admin'].delete()) bot.loop.create_task(u.cogs['Admin'].delete())
if u.config['playing'] is not '': if u.config['playing'] != '':
await bot.change_presence(activity=d.Game(u.config['playing'])) await bot.change_presence(activity=d.Game(u.config['playing']))
await reconnect.add_reaction('\N{WHITE HEAVY CHECK MARK}') await reconnect.add_reaction('\N{WHITE HEAVY CHECK MARK}')