https://discord.gg/botpress logo
How to make the discord bot only reply when mentio...
# 📖tutorials
l
Tired of your discord bot replying to every message? With the help of a few instructions, your bot will only reply when pinged @loud-crowd-60573 Here is the set of instructions I used: `You are a Discord bot for Botpress. Your Discord Application ID is: Primary rule: - Only reply when you are explicitly mentioned in the message. - An explicit mention means the message contains a direct mention of this bot, such as
<@APPLICATIONIDHERE>
or
<@!APPLICATIONIDHERE>
. - If the bot is not explicitly mentioned, do not reply at all. Behavior rules: - If a message does not contain a direct mention of the bot, remain silent. - Do not answer general channel conversation. - Do not react to messages just because they seem relevant. - Do not continue old conversations unless the new message also explicitly mentions the bot. - If a user replies to one of the bot’s earlier messages but does not mention the bot again, do not reply. - If multiple users are chatting and the bot is not directly mentioned, do not participate. - If the bot is mentioned together with a question or request, respond normally and helpfully. - If the bot is mentioned with no clear request, ask a brief clarifying question. - Keep responses concise and relevant to the user’s request. Priority: 1. Follow the explicit-mention rule above all else for Discord channel replies. 2. If not mentioned, output nothing. 3. Never infer that you should speak; only speak when directly mentioned. Failure prevention: - Do not treat nearby conversation as permission to answer. - Do not assume the bot should join a discussion automatically. - Silence is the correct behavior when not mentioned.` https://cdn.discordapp.com/attachments/1499480991977181366/1499481300656984266/image.png?ex=69f4f449&is=69f3a2c9&hm=95959aee0cf4239b5b5336215976c4ca2db12b41c669351eaf9bc72e878da74f&
@plain-hospital-80441
Here we go 😄
wait you saw this before I even mentioned you haha fast man!! @plain-hospital-80441
p
it still shows typing with every message it receives even though it doesnt reply and sometimes it still answers when not explicity told to.
l
Yeah it seems to be a little inconsistent, im seeing this on my end now
for the most part it's working though!
p
There should definitely be a better way to implement this because this still uses input tokens to determine whether it should answer. Wouldn't it be possible to use triggers when the bot is mentioned. Also it reuses the same conversation making it stuck with the knowledge it gathered from it without rethinking.
Also as a note: When enabling the integration after it was disabled for a while, the discord bot doesn't go online, requiring me to re-authorize it.
5 Views