From 4fb0acb7f1b2f67d050a87cface4257b3596e406 Mon Sep 17 00:00:00 2001 From: Vivaan Verma Date: Mon, 19 Jul 2021 14:30:48 +0100 Subject: Lay out purge command and cog structure --- arthur/exts/cloudflare/zones.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 arthur/exts/cloudflare/zones.py (limited to 'arthur/exts/cloudflare/zones.py') diff --git a/arthur/exts/cloudflare/zones.py b/arthur/exts/cloudflare/zones.py new file mode 100644 index 0000000..64cd5f3 --- /dev/null +++ b/arthur/exts/cloudflare/zones.py @@ -0,0 +1,19 @@ +"""The zones cog helps with managing Cloudflare zones""" +from discord.ext import commands + +from arthur.apis.cloudflare import zones +from arthur.bot import KingArthur + +class Zones(commands.Cog): + + def __init__(self, bot: KingArthur) -> None: + self.bot = bot + + @commands.group(name="zones", invoke_without_command=True) + async def zones(self, ctx: commands.Context) -> None: + "Commands for working with Cloudflare zones" + await ctx.send_help(ctx.command) + + @zones.command(name="purge") + async def purge(self, ctx: commands.Context, zone_name: str = "pythondiscord.com"): + pass \ No newline at end of file -- cgit v1.2.3