text command triggered by mentioning

For some context, I noticed that someone else had asked a similar question here, and the answer to that question was to add a listener called mentionPrefixOnly. What I am looking for is something similar. I am building an AI bot, and I want my users to be able to reply to a message and say something like "@Bot, is this true?" How can I get this to work?
Solution:
This worked perfectly, just for search purposes the correct event is UnknownMessageCommand
No description
Jump to solution
7 Replies
Favna
Favna•2mo ago
use message context commands? instead of message commands i.e. right click a message -> apps
Juan Pablo
Juan PabloOP•2mo ago
no not what I'm looking for I want to allow my users to ask whatever and I feel like that would be an step to get there just a simple bot mention and the prompt
Favna
Favna•2mo ago
well mentions for commands work automatically @Skyra help
Skyra
Skyra•2mo ago
Displaying one category per page. Have issues with the embed? Run @Skyra help --all for a full list in DMs.
Admin Commands
• <@266624760782258186> roleset → Manage unique role sets. • <@266624760782258186> conf → Define per-server settings.
1 / 14
Favna
Favna•2mo ago
as for resolving it into a command, use unknownCommand listener iirc
Mateleo
Mateleo•4w ago
I'm using a Listeners for that, works great in local but I don't know why, it's not detected in prod without any errors to help me out šŸ™
Solution
Juan Pablo
Juan Pablo•3w ago
This worked perfectly, just for search purposes the correct event is UnknownMessageCommand
No description

Did you find this page helpful?