From 106991bcfe6db125dae14118d31b5ab36ad574cf Mon Sep 17 00:00:00 2001 From: Haku Date: Sun, 15 Mar 2020 09:36:29 -0400 Subject: [PATCH] added clear cached founderless regions command --- founderlessnotify/founderlessnotify.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/founderlessnotify/founderlessnotify.py b/founderlessnotify/founderlessnotify.py index 24dde33..7e5ca86 100644 --- a/founderlessnotify/founderlessnotify.py +++ b/founderlessnotify/founderlessnotify.py @@ -110,6 +110,7 @@ class FounderlessNotify(commands.Cog): except KeyError: region_endos = -1 out.append((region_endos, region)) + print(out) # Sort the output by delegate endos in descending order out.sort() out.reverse() @@ -176,6 +177,13 @@ class FounderlessNotify(commands.Cog): await ctx.send(f'Manually updated founderless regions list. There are now ' f'{len(founderless_regions)} founderless regions.') + @commands.command() + @checks.is_owner() + async def clear_founderless(self, ctx): + """Clear the cached founderless regions.""" + await self.config.previous_founderless.clear() + await ctx.send("Cleared cached founderless regions.") + @commands.command() @checks.is_owner() async def force_download_dump(self, ctx):