Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Code:var logo = "https://i.imgur.com/EGAD4TE.png";
- const Discord = require('discord.js')
- const ms = require('ms')
- //const disagree = '❌'
- //const agree = '✅'
- exports.run = (client, message, args) => {
- let embed = new Discord.RichEmbed()
- .setColor(1956849)
- .setTimestamp()
- .addField('Fun commands!')
- .addField('.8ball','Ask a question and get an answer!')
- .addField('.coin','Flip a coin!')
- .addField('.laugh',':eyes:')
- .addField('.love','Show someone your love!')
- .addField('.dadjoke','Shows a random joke pulled off reddit.')
- message.channel.send({embed:
- embed})
- .then(function(message) {
- setTimeout(function() {
- message.react("\:white_check_mark:");
- }, ms("1s"))
- }).catch(function() {
- })
- if(message.member.hasPermission("MANAGE_MESSAGES"))
- var embed2 = new Discord.RichEmbed()
- .setColor(1956849)
- .setTimestamp()
- .setTitle('Trial mod commands')
- .addField('.kick','Kicks a user by mention.')
- .addField('.purge','Purges messages by number.')
- .addField('.mute','Mutes a user by ID or mention.')
- .addField('.unmute','Unmutes a user by ID or mention.')
- .setThumbnail(logo)
- message.channel.send({embed:
- embed2})
- .then(function(message) {
- setTimeout(function() {
- message.react("\:white_check_mark:");
- }, ms("1s"))
- }).catch(function() {
- })
- }
- if(message.member.hasPermission("BAN_MEMBERS"))
- var embed3 = new Discord.RichEmbed()
- .setColor(1956849)
- .setTimestamp()
- .setTitle('Mod+ commands')
- .addField('.ban','Bans a user by mention.')
- .addField('.unban','Unbans a user by ID.')
- .addField('.kick','Kicks a user by mention.')
- .addField('.purge','Purges messages by number.')
- .addField('.mute','Mutes a user by ID or mention.')
- .addField('.unmute','Unmutes a user by ID or mention.')
- .setThumbnail(logo)
- message.channel.send({embed:
- embed3})
- .then(function(message) {
- setTimeout(function() {
- message.react("\:white_check_mark:");
- }, ms("1s"))
- }).catch(function() {
- })
- if(message.member.hasPermission(8))
- var embed4 = new Discord.RichEmbed()
- .setColor(1956849)
- .setTimestamp()
- .setTitle('Mod+ commands')
- .addField('.ban','Bans a user by mention.')
- .addField('.unban','Unbans a user by ID.')
- .addField('.kick','Kicks a user by mention.')
- .addField('.purge','Purges messages by number.')
- .addField('.mute','Mutes a user by ID or mention.')
- .addField('.unmute','Unmutes a user by ID or mention.')
- .setThumbnail(logo)
- message.channel.send({embed:
- embed4})
- .then(function(message) {
- setTimeout(function() {
- message.react("\:white_check_mark:");
- }, ms("1s"))
- }).catch(function() {
- })
- exports.help = {
- name: 'help'
- }
- Error:
- if(message.member.hasPermission("BAN_MEMBERS"))
- ^
- ReferenceError: message is not defined
- at Object.<anonymous> (C:\Users\Seppe\Desktop\Play-MC\commands\help.js:55:1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement