#Can I make the bot respond to being pinged?
1 messages · Page 1 of 1 (latest)
That's ust a mention prefix
Check for it the same way you'd check for a string prefix
yeah but I have interaction and prefix commands for my bot
I would like to keep both of them and have mentions
Nothing stops you from doing that
Just add a mention check similar to your prefix check
You could then execute whatever you want
There is a HasMentionPrefix extension method that'd do the check for you
message.HasMentionPrefix(_client.CurrentUser, ref argPos)) ||
message.Author.IsBot)
return;```
I have it setup like this
idk what to use to for itself
not the curent user
currentUser is fine