Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require('discord.js');
- exports.run = async(client, msg, params) => {
- const user = msg.author;
- const erro = new Discord.RichEmbed()
- .setTitle("Erro!")
- .setDescription("Você precisa colocar uma palavra ou mencionar alguem!")
- .setTimestamp();
- const pagou = new Discord.RichEmbed()
- .setTitle(`${user.username} pagou respeito para ${params.join(" ")}`)
- .setDescription("Ele finalmente apertou o botão 'F' para pagar respeito!")
- .setTimestamp();
- if(!params.join(" ")) {
- return msg.channel.send(":x: " + "| Por-favor, mencione alguém ou uma(s) palavra(s)!")
- }
- if(params.join(" ") == user) {
- return msg.channel.send(":x: " + "| Você não pode pagar respeito a si mesmo!")
- }
- msg.channel.send(pagou);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement