Skip to content

Commit

Permalink
Merge pull request #4 from apex2504/dev
Browse files Browse the repository at this point in the history
merge dev and master
  • Loading branch information
apex2504 committed Jan 8, 2021
2 parents 24c4d9e + 69558f9 commit 39d9d39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/discord_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class Coronavirus(commands.Cog):

def __init__(self, bot):
self.bot = bot
if not hasattr(self.bot, 'corona'):
if not hasattr(self.bot, 'covid'): #prevent the client being overwritten during cog reloads
self.diseaseapi = diseaseapi.Client()
self.bot.covid = self.diseaseapi.covid19

Expand Down

0 comments on commit 39d9d39

Please sign in to comment.