diff options
Diffstat (limited to 'arthur/exts/cloudflare/zones.py')
| -rw-r--r-- | arthur/exts/cloudflare/zones.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/arthur/exts/cloudflare/zones.py b/arthur/exts/cloudflare/zones.py index 3b8b3b7..c6e625f 100644 --- a/arthur/exts/cloudflare/zones.py +++ b/arthur/exts/cloudflare/zones.py @@ -1,4 +1,4 @@ -"""The zones cog helps with managing Cloudflare zones""" +"""The zones cog helps with managing Cloudflare zones.""" from typing import Optional from discord.ext import commands @@ -8,17 +8,21 @@ from arthur.bot import KingArthur class Zones(commands.Cog): + """Commands for working with Cloudflare zones.""" + 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" + """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: Optional[str] = "pythondiscord.com"): - """Command to clear the Cloudflare cache of the specified zone""" + async def purge(self, ctx: commands.Context, + zone_name: Optional[str] = "pythondiscord.com" + ) -> 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] purge_attempt_response = await zones.purge_zone(required_id) |