aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Amrou Bellalouna <[email protected]>2022-09-11 10:35:41 +0100
committerGravatar Amrou Bellalouna <[email protected]>2022-09-16 16:59:04 +0100
commitae0146c6437afca5b97ac0de909efab000977b0f (patch)
treed522ef954c29e33c4a3e20bd0e45a6b5c9e3c193
parentadd missing blank line (diff)
suggest adding a keyword in dev & meta channels
-rw-r--r--bot/exts/info/information.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py
index 3dd12c005..5f996508f 100644
--- a/bot/exts/info/information.py
+++ b/bot/exts/info/information.py
@@ -19,7 +19,7 @@ from bot.errors import NonExistentRoleError
from bot.log import get_logger
from bot.pagination import LinePaginator
from bot.utils import time
-from bot.utils.channel import is_mod_channel, is_staff_channel
+from bot.utils.channel import get_or_fetch_channel, is_mod_channel, is_staff_channel
from bot.utils.checks import cooldown_with_role_bypass, has_no_roles_check, in_whitelist_check
from bot.utils.members import get_or_fetch_member
@@ -580,9 +580,12 @@ class Information(Cog):
if not rules and not final_rules:
# This would mean that only keywords where used and no match for them was found
+ dev_contrib_channel = await get_or_fetch_channel(constants.Channels.dev_contrib)
+ meta_channel = await get_or_fetch_channel(constants.Channels.meta)
await ctx.send(
- f"There are currently no rules that correspond to keywords: {[', '.join(keywords)]}."
- "If you think it should be added, please ask our admins and they'll take care of the rest.")
+ f"There are currently no rules that correspond to keywords: **{', '.join(keywords)}**.\n"
+ f"If you think it should be added, please suggest it in either "
+ f"{meta_channel.mention} or {dev_contrib_channel.mention}")
return
await LinePaginator.paginate(final_rules, ctx, rules_embed, max_lines=3)