spambot
spambot copied to clipboard
Send multiple messages
Hey, thanks for this amazing project. Quick question, how would you send multiple messages from the command line? Also how would you mention Discord users in the mention? Like @Player
Also is there a reason that this bot won't work on some servers? The --prune flag also doesn't delete the message, but just send /prune text.
You're welcome!
The --prune
flag sends the /prune
text, which should then delete the last message you sent. The code for this can be found on this line if you are interested.
This bot could malfunction on some servers if you lack the ability to delete your messages, I am unfamiliar with such a permission problem but I'm sure it is possible if an admin is interested in keeping all messages for auditing purposes.
Can you elaborate on what you mean when you say you want to send multiple messages from the command line? I need some more information to be able to tell you if what you're asking for is supported or if you would have to add it in yourself.
As far as tagging users, you should be able to include the full @
of the user, i.e. @ajmeese7#4835
. If that doesn't work for you then I can look more into it and see if there is another approach. I'm sure you can use the user's ID to do it as well, I just don't remember how to do that off the top of my head.
Thanks for the quick reply, I meant like node bot.js --message "Text1" "Text2"
How would I input more messages after Text1 basically? Also, how can I add a delay in between each message if I want to send multiple messages.
What you are asking is currently not supported by the CLI, it would probably be easier for you to do this directly from the JavaScript if that is an option for you.