Skip to content

Commit 6170d12

Browse files
author
omame
committed
add command warning
1 parent bd556c1 commit 6170d12

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cogs/lar.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ async def reply(self, message: discord.Message):
6161
question = qna.helpers.get_closest_question(list(self.config.question_map.values()), content)
6262
response = qna.helpers.pick_response(question)
6363
text = response.text or placeholder
64+
if message.content.startswith(self.client.command_prefix):
65+
text += "\n(psst, i don't listen to commands here! if you want to run a command, " \
66+
"go to another channel.)"
6467
await message.reply(text)
6568
self.logger.debug(f"reply: {message.clean_content} -> {text}")
6669

0 commit comments

Comments
 (0)