Discord Bot Maker

Discord Bot Maker

View Stats:
Aiden Nov 8, 2018 @ 1:22am
How to make a bot detect a msg in DMs
I want a bot to copy and paste the msg from DMs to another user
< >
Showing 1-1 of 1 comments
Cartoon Corpze Dec 30, 2018 @ 8:51am 
Make a command that's bot owner only.
First, store the person you want to message in a variable, then store all command parameters into a variable aswell. Then send the message to that person.

I figured out how to dm a person in a server, it's pretty easy, though might not be what you exactly looked for. Just mention the user and store the mentioned user in a variable, then store all parameters starting from #2 in a variable and dm it to the user.

{"name":"dmuser","permissions":"NONE","restriction":"0","actions":[{"member":"1","varName":"userid","info":"1","storage":"1","varName2":"commanduser","name":"Store Member Info"},{"info":"1","infoIndex":"2","storage":"1","varName":"message","name":"Store Command Params"},{"storage":"1","varName":"commanduser","comparison":"1","value":"globalVars(\"botownerid\")","iftrue":"3","iftrueVal":"2","iffalse":"0","iffalseVal":"3","name":"Check Variable"},{"channel":"1","varName":"","message":"You can't do that, you're not the master.","storage":"0","varName2":"","name":"Send Message"},{"name":"End Action Sequence"},{"channel":"1","varName":"","message":"Message ``${tempVars(\"message\")}`` has been send to ``${mentionedUser}``.","storage":"0","varName2":"","name":"Send Message"},{"channel":"2","varName":"","message":"${tempVars(\"message\")}","storage":"0","varName2":"","name":"Send Message"}]}

Here is the raw data for if you want to dm people from your server.
It's pretty easy.
How it works: [prefix]dmuser [user you want to dm] [message].
If I'm correct then that should dm the user.

What you can do is create a secret channel for you alone in your own server and use the command there so no one will know that you messaged the user.
Not sure why you would want that but you could do it to prank your friends or something.

NOTE: This command is for if you want to message someone from the server.
If you set **command restrictions** to "None" it will detect the command from anywhere, even dm.
You can't mention a person in DM sadly so you'll have to store a member in a variable before dming the person.

**My solution for your problem.**
Try to make one command that stores a mentioned user in a global variable
make a second command that sends a message to the global variable (has to be a member, not a user id or name, it has to be the user itself).
Last edited by Cartoon Corpze; Dec 30, 2018 @ 9:03am
< >
Showing 1-1 of 1 comments
Per page: 1530 50

Date Posted: Nov 8, 2018 @ 1:22am
Posts: 1