UNPKG

xopbot

Version:

XOPBOT Is A Multipurpose Bot With Over 200+ Commands That Make You Love The Bot!

16 lines 994 B
const lineReplyNoMention = require('discord-reply'); const color = process.env.Color; const logChannel = process.env.logChannel; module.exports = { name: 'clearbug', aliases: ['clearbugs', 'cb'], permissions: ["ADMINISTRATOR"], clientpermissions: ["ADMINISTRATOR"], cooldown: 4200, description: 'kill a user', async execute(client, message, cmd, args, Discord) { const loggerchannel = client.channels.cache.get(logChannel); const clearbugembed = new Discord.MessageEmbed().setTimestamp().setColor(`${color}`).setAuthor(`${message.author.username}`, message.author.displayAvatarURL({ dynamic: true })).setDescription(`**XOPBOT Cleared All Bugs From ${message.guild.name}!\nSome Bugs Will Stay Not All Can Be Removed!**`); message.lineReplyNoMention(clearbugembed) loggerchannel.send({ content: `**${message.author.username}#${message.author.discriminator} used the command ${this.name} in ${message.guild.name}**` }) } }