Skip to content

Commit 471e69c

Browse files
committed
Remove uneeded config update
1 parent 3de1567 commit 471e69c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bot.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ async def on_connect(self):
175175
print('Mode: Selfhosting logs.')
176176
print(line)
177177
print(Fore.CYAN + 'Connected to gateway.')
178+
178179
await self.config.refresh()
179180

180181
activity_type = self.config.get('activity_type')
@@ -202,7 +203,6 @@ async def on_ready(self):
202203
print(Fore.RED + Style.BRIGHT + 'WARNING - The GUILD_ID provided does not exist!' + Style.RESET_ALL)
203204
else:
204205
await self.threads.populate_cache()
205-
await self.config.update()
206206

207207
closures = self.config.closures.copy()
208208

@@ -233,6 +233,7 @@ async def on_ready(self):
233233
message=items['message']
234234
)
235235
)
236+
236237

237238
async def process_modmail(self, message):
238239
"""Processes messages sent to the bot."""
@@ -338,7 +339,7 @@ async def on_guild_channel_delete(self, channel):
338339
entry = await audit_logs.find(lambda e: e.target.id == channel.id)
339340
mod = entry.user
340341

341-
if mod.bot:
342+
if mod == self.user:
342343
return
343344

344345
thread = await self.threads.find(channel=channel)

0 commit comments

Comments
 (0)