Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send multiple messages #63

Open
ghost opened this issue Mar 7, 2022 · 3 comments
Open

Send multiple messages #63

ghost opened this issue Mar 7, 2022 · 3 comments

Comments

@ghost
Copy link

ghost commented Mar 7, 2022

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.

@ghost ghost changed the title Multiple lines Send multiple messages Mar 7, 2022
@ajmeese7
Copy link
Owner

ajmeese7 commented Mar 7, 2022

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.

@ghost
Copy link
Author

ghost commented Mar 8, 2022

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.

@ajmeese7
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant