Skip to content

Commit

Permalink
Fixed bug with update notifiations
Browse files Browse the repository at this point in the history
  • Loading branch information
fourjr committed Jan 14, 2021
1 parent 80010ca commit cc17001
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,7 @@ async def autoupdate(self):
)
logger.info("Bot has been updated.")
channel = self.log_channel
if self.bot.config["update_notifications"]:
if self.config["update_notifications"]:
await channel.send(embed=embed)
else:
try:
Expand Down Expand Up @@ -1548,7 +1548,7 @@ async def autoupdate(self):
embed.set_footer(
text=f"Updating Modmail v{self.version} " f"-> v{latest.version}"
)
if self.bot.config["update_notifications"]:
if self.config["update_notifications"]:
await channel.send(embed=embed)
else:
embed = discord.Embed(
Expand All @@ -1559,7 +1559,7 @@ async def autoupdate(self):
embed.set_footer(
text=f"Updating Modmail v{self.version} " f"-> v{latest.version}"
)
if self.bot.config["update_notifications"]:
if self.config["update_notifications"]:
await channel.send(embed=embed)
await self.logout()

Expand Down

0 comments on commit cc17001

Please sign in to comment.