diff options
| -rw-r--r-- | arthur/exts/cloudflare/zones.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arthur/exts/cloudflare/zones.py b/arthur/exts/cloudflare/zones.py index ed1ff0d..91eee33 100644 --- a/arthur/exts/cloudflare/zones.py +++ b/arthur/exts/cloudflare/zones.py @@ -22,7 +22,7 @@ class Zones(commands.Cog): @zones.command(name="purge") async def purge(self, ctx: commands.Context, zone_name: Optional[str] = "pythondiscord.com" - ) -> None: + ) -> None: """Command to clear the Cloudflare cache of the specified zone.""" pydis_zones = await zones.list_zones(zone_name) required_id = pydis_zones[zone_name] @@ -43,6 +43,7 @@ class Zones(commands.Cog): await ctx.send(message) + def setup(bot: KingArthur) -> None: """Add the extension to the bot.""" bot.add_cog(Zones(bot)) |