Skip to content

Commit cc17001

Browse files
committed
Fixed bug with update notifiations
1 parent 80010ca commit cc17001

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,7 +1519,7 @@ async def autoupdate(self):
15191519
)
15201520
logger.info("Bot has been updated.")
15211521
channel = self.log_channel
1522-
if self.bot.config["update_notifications"]:
1522+
if self.config["update_notifications"]:
15231523
await channel.send(embed=embed)
15241524
else:
15251525
try:
@@ -1548,7 +1548,7 @@ async def autoupdate(self):
15481548
embed.set_footer(
15491549
text=f"Updating Modmail v{self.version} " f"-> v{latest.version}"
15501550
)
1551-
if self.bot.config["update_notifications"]:
1551+
if self.config["update_notifications"]:
15521552
await channel.send(embed=embed)
15531553
else:
15541554
embed = discord.Embed(
@@ -1559,7 +1559,7 @@ async def autoupdate(self):
15591559
embed.set_footer(
15601560
text=f"Updating Modmail v{self.version} " f"-> v{latest.version}"
15611561
)
1562-
if self.bot.config["update_notifications"]:
1562+
if self.config["update_notifications"]:
15631563
await channel.send(embed=embed)
15641564
await self.logout()
15651565

0 commit comments

Comments
 (0)