aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2021-11-29 12:00:40 +0100
committerGravatar GitHub <[email protected]>2021-11-29 12:00:40 +0100
commit22af562b77efa195f9113386383b57ea5f3989ab (patch)
treed232e73171b74c132fc43f1e1af5d5f54fcdf060
parentUse bright_green for "Currently Helping" DMs (#1979) (diff)
parentMerge branch 'main' into bsoyka/rules-shortening-space (diff)
Merge pull request #1981 from python-discord/bsoyka/rules-shortening-space
Small changes to invalid rule indices message shortening
-rw-r--r--bot/exts/info/site.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/info/site.py b/bot/exts/info/site.py
index bcb04c909..f6499ecce 100644
--- a/bot/exts/info/site.py
+++ b/bot/exts/info/site.py
@@ -125,11 +125,11 @@ class Site(Cog):
# Remove duplicates and sort the rule indices
rules = sorted(set(rules))
- invalid = shorten(', '.join(str(index) for index in rules if index
- < 1 or index > len(full_rules)), 50, placeholder='...')
+
+ invalid = ', '.join(str(index) for index in rules if index < 1 or index > len(full_rules))
if invalid:
- await ctx.send(f":x: Invalid rule indices: {invalid}")
+ await ctx.send(shorten(":x: Invalid rule indices: " + invalid, 75, placeholder=' ...'))
return
for rule in rules: