aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/exts/fun/devops_rules.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-02-04 22:14:34 +0000
committerGravatar Chris Lovering <[email protected]>2024-02-04 22:14:34 +0000
commit035a82bca005453f1af8edb98060646b8bee9a55 (patch)
treee130bf5c9c41c562bcfa425964f78a858c3e5b5e /arthur/exts/fun/devops_rules.py
parentMark bot token & CF token as secret strings (diff)
Ensure devops rules key cache uses int based keys
Diffstat (limited to 'arthur/exts/fun/devops_rules.py')
-rw-r--r--arthur/exts/fun/devops_rules.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/arthur/exts/fun/devops_rules.py b/arthur/exts/fun/devops_rules.py
index 0e311cb..ebe5b6f 100644
--- a/arthur/exts/fun/devops_rules.py
+++ b/arthur/exts/fun/devops_rules.py
@@ -25,7 +25,7 @@ class Rules(Cog):
self.rules = {}
for line in parsed_content:
number, rule = line.split(".", maxsplit=1)
- self.rules[number] = rule.strip()
+ self.rules[int(number)] = rule.strip()
@group(name="rules", aliases=("rule",))
async def rules_group(self, ctx: Context, rules: Greedy[int]) -> None: