Advertisement
Ryyan

Untitled

Jul 30th, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1.  
  2. if (command === "say") {
  3. let embed = new Discord.RichEmbed()
  4. .setColor("#ff0000")
  5. .setTitle(`❌${message.author.username}, error!❌`)
  6. .setDescription(`Only Liridon can use this command.`)
  7. .setFooter("This bot was made by Ryyan Bot developer.")
  8. .setTimestamp()
  9.  
  10. if (message.author.id !== "425720369156980736") return message.channel.send(embed)
  11.  
  12. message.react('👌')
  13. // makes the bot say something and delete the message. As an example, it's open to anyone to use.
  14. // To get the "message" itself we join the `args` back into a string with spaces:
  15. const sayMessage = args.join(" ");
  16. // Then we delete the command message (sneaky, right?). The catch just ignores the error with a cute smiley thing.
  17. message.delete().catch(O_o => {});
  18. // And we get the bot to say the thing:
  19. message.channel.send(sayMessage);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement