From 99d76f5bc23f702c25fe2fb1ea3b460837c75a28 Mon Sep 17 00:00:00 2001 From: Haku Date: Wed, 26 May 2021 09:41:10 -0400 Subject: [PATCH] fixed coroutines not being awaited --- founderlessnotify/founderlessnotify.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/founderlessnotify/founderlessnotify.py b/founderlessnotify/founderlessnotify.py index 324186e..ab15d18 100644 --- a/founderlessnotify/founderlessnotify.py +++ b/founderlessnotify/founderlessnotify.py @@ -136,7 +136,7 @@ class FounderlessNotify(commands.Cog): minor_time = major_time + 12 # Major Update if current_time.hour == (major_time + 2): - download_region_dump() + await download_region_dump() await self.update_founderless('major') await asyncio.sleep(3600) # Minor Update @@ -176,7 +176,7 @@ class FounderlessNotify(commands.Cog): @checks.is_owner() async def force_update_founderless(self, ctx): """Manually update the founderless region list.""" - founderless_regions = get_founderless_regions() + founderless_regions = await get_founderless_regions() await self.config.previous_founderless.set(founderless_regions) await ctx.send(f'Manually updated founderless regions list. There are now ' f'{len(founderless_regions)} founderless regions.') @@ -193,5 +193,5 @@ class FounderlessNotify(commands.Cog): async def force_download_dump(self, ctx): """Manually download the region dump.""" await ctx.send('Downloading region dump...') - download_region_dump() + await download_region_dump() await ctx.send('Region dump successfully updated.')