aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Shirayuki Nekomata <[email protected]>2020-03-08 23:01:02 +0700
committerGravatar GitHub <[email protected]>2020-03-08 23:01:02 +0700
commit139a7148e1ec51ae41cff12c3d32ab6f52c95aef (patch)
tree007003e1c9f98bae81b2843c50516f03c6fe6eaf
parentRefactored dense codes, removed obvious type hint. (diff)
Fixed `is_plural` counting 1 less space.
Co-Authored-By: Mark <[email protected]>
-rw-r--r--bot/cogs/tags.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/tags.py b/bot/cogs/tags.py
index 89f3acb6d..e3ade07a9 100644
--- a/bot/cogs/tags.py
+++ b/bot/cogs/tags.py
@@ -117,7 +117,7 @@ class Tags(Cog):
elif len(matching_tags) == 1:
return Embed().from_dict(matching_tags[0]['embed'])
else:
- is_plural = len(keywords_processed) > 1 or keywords.strip().count(' ') > 1
+ is_plural = len(keywords_processed) > 1 or keywords.strip().count(' ') > 0
embed = Embed(
title=f"Here are the tags containing the given keyword{'s' * is_plural}:",
description='\n'.join(tag['title'] for tag in matching_tags[:10])