SHARE
TWEET

Untitled

a guest Jul 16th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. client.on("message", message => {
  2.             if(message.author.bot) return;
  3.             if(message.channel.type === 'dm') return;
  4.             if(!message.content.startsWith(prefix)) return;
  5.             let args = message.content.slice(prefix.length).trim().split(/ +/g);
  6.             let command = args.shift().toLocaleLowerCase()
  7.             switch (command) {
  8.               case "vote": {
  9.                 let right = client.emojis.find(r => r.name === 'right1');
  10.                 let wrong = client.emojis.find(r => r.name === 'wrong1');
  11.                 if(!message.member.hasPermission("MANAGE_CHANNELS")) return message.channel.send(`**This Command require __MANAGE_CHANNELS__ Permission.**`);
  12.                 if(!args[0]) return message.channel.send("**Usage `pls vote 10s wanna play ?!`**");
  13.                 if(!args[1]) return message.channel.send(`**Please <@${message.author.id}> write what u want to __Vote__ about !!\nEx**:`+
  14.                 "`"+"pls vote 10s Wanna Play ?!"+"`");
  15.                 let vote = client.emojis.find(r => r.name === 'vote1');
  16.                 let embed = new Discord.RichEmbed()
  17.                 .setColor("BLACK")
  18.                 .setTitle(`**Voting** ${vote}`)
  19.                 .addField("`Voting Subject`", `${args - args[0]}`)
  20.                 message.channel.send(embed)
  21.                 break;
  22.                     }
  23.             }
  24.             })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top