How to get started with ./,/;-commands

I am making a discord bot for a cult server of mine about bread, and there is a channel in that server where new members ping the person that recruited them. I want my bot to keep track of that and make a leaderboard of sorts, but I do not know how to make the bot do anything besides slash commands. So I want my bot to - Read a new message - Then determine if it is a ping and sent by a user that hasn't ping there before - And then react to that message with a special emoji to verify that is has been seen How do I get started with that?
8 Replies
d.js toolkit
d.js toolkit4w ago
:Definitely Not A Dolphin
Since slashcommands are called that I am calling non-slashcommands dot-commands or comma-commands or semicolon-commands for clarit
monbrey
monbrey4w ago
Why can't this still be a slash command with a user option? Otherwise you just listen to the messageCreate event, and look at the message.content and message.mentions
:Definitely Not A Dolphin
Now that I think of it it could be, but then I would have to get an array of all the ppl in the server every time it is ran and I think it can be done more effiecently. I also just want to learn how to do them anyway so thats why I would like to do it like I describer Because of autocomplete Explain
monbrey
monbrey4w ago
Slash command user options do just that - allow people to select any user, and then sends that user to the bot You dont need to configure it - in fact, you literally cant configure it Have a look at the optional mention option on the /tag command here for an example
monbrey
monbrey4w ago
No description
:Definitely Not A Dolphin
Is there like an entry in the reference for that? Stupid question of course there is OKay a friend helped me thank yall !solved oh damn
d.js toolkit
d.js toolkit4w ago
The thread owner has marked this issue as solved.

Did you find this page helpful?