Skip to content

Commit ecb9db1

Browse files
committed
Fixing the timer and being more prescriptive
1 parent 1c849b3 commit ecb9db1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

bot/context_menus.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,18 @@ async def handle_command(self, interaction: Interaction, message: Message, chann
4343
await interaction.response.defer(ephemeral=True)
4444

4545
if await self.has_required_role(interaction):
46-
notification = f"{message.author.mention}, please post your message in <#{channel_id}>. This channel is not for this type of conversation."
46+
if channel_id == EMPLOYMENT_CHANNEL_ID:
47+
notification = f"{message.author.mention}, please post your employment-related message in <#{channel_id}> and read this message https://discord.com/channels/930170875049820181/930171437841526825/1132078814734848131, specifically the `Employment Posting Guidelines` section."
48+
elif channel_id == SHOWCASE_CHANNEL_ID:
49+
notification = f"{message.author.mention}, please showcase your work in <#{channel_id}> and read this message https://discord.com/channels/930170875049820181/930171437841526825/1132078814734848131, specifically the `Project Showcase Guidelines` section."
50+
elif channel_id == HELP_FORUM_CHANNEL_ID:
51+
notification = f"{message.author.mention}, please ask for help in <#{channel_id}> and read this message https://discord.com/channels/930170875049820181/930171437841526825/1132078814734848131, specifically the `Question Quality Guidelines` section."
52+
else:
53+
notification = f"{message.author.mention}, please post your message in <#{channel_id}>. This channel is not for this type of conversation."
54+
4755
await message.reply(notification)
4856

49-
countdown_duration = 60
57+
countdown_duration = 15
5058
countdown_message = await interaction.followup.send(
5159
f"Message will be deleted in {countdown_duration} seconds.", ephemeral=True)
5260

0 commit comments

Comments
 (0)