aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Vivaan Verma <[email protected]>2021-07-19 14:30:48 +0100
committerGravatar Vivaan Verma <[email protected]>2021-07-19 14:30:48 +0100
commit4fb0acb7f1b2f67d050a87cface4257b3596e406 (patch)
tree9a1f2c8c7ceb11ea6aaa7f1d78dfadc4a4e82a11
parentAdd Cloudflare API for zones (diff)
Lay out purge command and cog structure
-rw-r--r--arthur/exts/cloudflare/zones.py19
1 files changed, 19 insertions, 0 deletions
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