aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/exts/fun/devops_rules.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2023-01-01 17:21:13 +0000
committerGravatar Chris Lovering <[email protected]>2023-01-01 17:21:13 +0000
commit7d272f9b5709f6a5f921adf8479e7ad75a1cc4b4 (patch)
treee0223887de0dbc404937817e8b648f65c3962743 /arthur/exts/fun/devops_rules.py
parentAdd command to refresh devops rules (diff)
Format devops rules cog
Diffstat (limited to 'arthur/exts/fun/devops_rules.py')
-rw-r--r--arthur/exts/fun/devops_rules.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/arthur/exts/fun/devops_rules.py b/arthur/exts/fun/devops_rules.py
index 24c41f2..66b0078 100644
--- a/arthur/exts/fun/devops_rules.py
+++ b/arthur/exts/fun/devops_rules.py
@@ -85,16 +85,16 @@ class Rules(Cog):
return
output = "\n".join(
- f"{key}: {value}"
- for key, value in self.rules.items()
- if key in output_rules
+ f"{key}: {value}" for key, value in self.rules.items() if key in output_rules
+ )
+ await ctx.send(
+ embed=discord.Embed(
+ title=f"Rule{'s'[:len(output_rules)^1]}",
+ description=output,
+ colour=discord.Colour.og_blurple(),
+ url="https://www.notion.so/pythondiscord/Rules-149bc48f6f7947afadd8036f11d4e9a7",
+ )
)
- await ctx.send(embed=discord.Embed(
- title=f"Rule{'s'[:len(output_rules)^1]}",
- description=output,
- colour=discord.Colour.og_blurple(),
- url="https://www.notion.so/pythondiscord/Rules-149bc48f6f7947afadd8036f11d4e9a7",
- ))
@rules_group.command(name="refresh", aliases=("fetch", "update"))
async def update_rules(self, ctx: Context) -> None: