aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-02-23 17:32:58 -0800
committerGravatar MarkKoz <[email protected]>2020-03-22 15:54:33 -0700
commit73d218b8bebde2016f0cff215e43e53d8e781608 (patch)
treec8e0ca0149bc5a70b4affa8eeb5a484fd4f7c71c
parentConstants: add constants for HelpChannels cog (diff)
HelpChannels: add constants for active/dormant messages
-rw-r--r--bot/cogs/help_channels.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py
index 561c4d2c9..6bcaaf624 100644
--- a/bot/cogs/help_channels.py
+++ b/bot/cogs/help_channels.py
@@ -3,8 +3,32 @@ from pathlib import Path
from discord.ext import commands
+from bot import constants
from bot.bot import Bot
+ASKING_GUIDE_URL = "https://pythondiscord.com/pages/asking-good-questions/"
+
+AVAILABLE_MSG = f"""
+This help channel is now **available**, which means that you can claim it by simply typing your \
+question into it. Once claimed, the channel will move into the **Help: In Use** category, and will \
+be yours until it has been inactive for {constants.HelpChannels.idle_minutes}. When that happens, \
+it will be set to **dormant** and moved into the **Help: Dormant** category.
+
+Try to write the best question you can by providing a detailed description and telling us what \
+you've tried already. For more information on asking a good question, \
+[check out our guide on asking good questions]({ASKING_GUIDE_URL}).
+"""
+
+DORMANT_MSG = f"""
+This help channel has been marked as **dormant**, and has been moved into the **Help: Dormant** \
+category at the bottom of the channel list. It is no longer possible to send messages in this \
+channel until it becomes available again.
+
+If your question wasn't answered yet, you can claim a new help channel from the \
+**Help: Available** category by simply asking your question again. Consider rephrasing the \
+question to maximize your chance of getting a good answer. If you're not sure how, have a look \
+through [our guide for asking a good question]({ASKING_GUIDE_URL}).
+"""
with Path("bot/resources/elements.json").open(encoding="utf-8") as elements_file:
ELEMENTS = json.load(elements_file)