Skip to content

Commit 8300316

Browse files
committed
Perhaps refreshing will help?
1 parent 1a43eeb commit 8300316

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

bot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ async def on_ready(self):
202202
print(Fore.RED + Style.BRIGHT + 'WARNING - The GUILD_ID provided does not exist!' + Style.RESET_ALL)
203203
else:
204204
await self.threads.populate_cache()
205+
await self.config.update()
205206

206207
closures = self.config.get('closures', {})
207208
print(closures) # for debugging

core/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def populate_cache(self):
4343
'blocked': {},
4444
'notification_squad': {},
4545
'subscriptions': {},
46-
'closures': {}
4746
}
4847

4948
try:

core/thread.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ async def close(self, *, closer, after=0, silent=False,
5858
if after > 0:
5959
# TODO: Add somewhere to clean up broken closures
6060
# (when channel is already deleted)
61+
await self.bot.config.update()
6162
closures = self.bot.config.get('closures', {})
6263
now = datetime.datetime.utcnow()
6364
items = {

0 commit comments

Comments
 (0)