aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Shirayuki Nekomata <[email protected]>2020-03-16 00:27:18 +0700
committerGravatar Shirayuki Nekomata <[email protected]>2020-03-16 00:27:18 +0700
commit8eea9c39261d77f86181600164920a635edd3570 (patch)
treea4e9faa1b4ca52ff76cdf4ab1dfdb9e65581ca3c
parentnot awaiting _get_tags_via_content() method as it is non-async (diff)
Fixed tag search via contents, any keywords.
Fixed `!tag search any` raises `AttributeError`. Changed default value of `keywords` from `None` to `'any'`. This will make it search for keyword `'any'` when there is no keyword.
-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 5b820978d..539105017 100644
--- a/bot/cogs/tags.py
+++ b/bot/cogs/tags.py
@@ -155,7 +155,7 @@ class Tags(Cog):
await self._send_matching_tags(ctx, keywords, matching_tags)
@search_tag_content.command(name='any')
- async def search_tag_content_any_keyword(self, ctx: Context, *, keywords: Optional[str] = None) -> None:
+ async def search_tag_content_any_keyword(self, ctx: Context, *, keywords: Optional[str] = 'any') -> None:
"""
Search inside tags' contents for tags. Allow searching for multiple keywords separated by comma.