| @@ -110,6 +110,7 @@ class FounderlessNotify(commands.Cog): | |||||
| except KeyError: | except KeyError: | ||||
| region_endos = -1 | region_endos = -1 | ||||
| out.append((region_endos, region)) | out.append((region_endos, region)) | ||||
| print(out) | |||||
| # Sort the output by delegate endos in descending order | # Sort the output by delegate endos in descending order | ||||
| out.sort() | out.sort() | ||||
| out.reverse() | out.reverse() | ||||
| @@ -176,6 +177,13 @@ class FounderlessNotify(commands.Cog): | |||||
| await ctx.send(f'Manually updated founderless regions list. There are now ' | await ctx.send(f'Manually updated founderless regions list. There are now ' | ||||
| f'{len(founderless_regions)} founderless regions.') | 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() | @commands.command() | ||||
| @checks.is_owner() | @checks.is_owner() | ||||
| async def force_download_dump(self, ctx): | async def force_download_dump(self, ctx): | ||||