Discord.PHP - Send a dm to a person if they enter a command

Posted in General by diabloIIIROS Tue Sep 03 2019 23:47:30 GMT+0000 (Coordinated Universal Time)·Viewed 660 times

Hello I am trying to get it so if you send a certain text (command) the bot would respond in that users dm, and what I want the bot to respond with is the " echo $keys[$keysran] . "\r\n"; " so what ever it chose it would dm that person that same information if the user entered in the command so far here is my code: https://pastebin.com/PtyyQHqq
Markdown is allowed