Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. const Discord = require('discord.js');
  2.  
  3. exports.run = async(client, msg, params) => {
  4.  
  5. const user = msg.author;
  6.  
  7. const erro = new Discord.RichEmbed()
  8. .setTitle("Erro!")
  9. .setDescription("Você precisa colocar uma palavra ou mencionar alguem!")
  10. .setTimestamp();
  11.  
  12. const pagou = new Discord.RichEmbed()
  13. .setTitle(`${user.username} pagou respeito para ${params.join(" ")}`)
  14. .setDescription("Ele finalmente apertou o botão 'F' para pagar respeito!")
  15. .setTimestamp();
  16.  
  17. if(!params.join(" ")) {
  18. return msg.channel.send(":x: " + "| Por-favor, mencione alguém ou uma(s) palavra(s)!")
  19. }
  20.  
  21. if(params.join(" ") == user) {
  22. return msg.channel.send(":x: " + "| Você não pode pagar respeito a si mesmo!")
  23.  
  24. }
  25.  
  26. msg.channel.send(pagou);
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement