Check for perm

This commit is contained in:
loicbersier 2019-11-09 12:04:01 +01:00
parent 8441ad09df
commit 0113996b80
70 changed files with 102 additions and 38 deletions

View file

@ -19,6 +19,7 @@ class autoresponseCommand extends Command {
type: 'string'
}
],
clientPermissions: ['SEND_MESSAGES'],
userPermissions: ['MANAGE_MESSAGES'],
channelRestriction: 'guild',
description: {

View file

@ -23,12 +23,12 @@ class BanCommand extends Command {
match: 'rest'
}
],
clientPermissions: ['BAN_MEMBERS'],
clientPermissions: ['BAN_MEMBERS', 'SEND_MESSAGES'],
userPermissions: ['BAN_MEMBERS'],
channelRestriction: 'guild',
description: {
content: 'Ban user',
usage: '[@user]',
usage: '[@user] [reason]',
examples: ['@user big dumb dumb']
}
});

View file

@ -7,7 +7,7 @@ class BannedWordsCommand extends Command {
aliases: ['bannedword', 'banword'],
category: 'admin',
userPermissions: ['MANAGE_MESSAGES'],
clientPermissions: ['MANAGE_MESSAGES'],
clientPermissions: ['MANAGE_MESSAGES', 'SEND_MESSAGES'],
args: [
{
id: 'word',

View file

@ -23,12 +23,12 @@ class KickCommand extends Command {
match: 'rest'
}
],
clientPermissions: ['KICK_MEMBERS'],
clientPermissions: ['KICK_MEMBERS', 'SEND_MESSAGES'],
userPermissions: ['KICK_MEMBERS'],
channelRestriction: 'guild',
description: {
content: 'Kick user',
usage: '[@user]',
usage: '[@user] [reason]',
examples: ['@user big dumb dumb']
}
});

View file

@ -14,7 +14,7 @@ class PruneCommand extends Command {
type: 'integer'
}
],
clientPermissions: ['MANAGE_MESSAGES'],
clientPermissions: ['MANAGE_MESSAGES', 'SEND_MESSAGES'],
userPermissions: ['MANAGE_MESSAGES'],
channelRestriction: 'guild',
description: {

View file

@ -14,9 +14,7 @@ class shameboardCommand extends Command {
type: 'string',
prompt: {
start: 'What emote should be used to enter the shameboard?',
optional: true
},
default: '✡'
},
{
id: 'count',
@ -34,7 +32,7 @@ class shameboardCommand extends Command {
}
],
description: {
content: 'Set shameobard --remove to remove the shameboard',
content: 'Set shameobard in the current channel. --remove to remove the shameboard',
usage: '[emote] [minimum number required to enter shameboard]',
examples: ['']
}

View file

@ -27,8 +27,8 @@ class SlowmodeCommand extends Command {
channelRestriction: 'guild',
description: {
content: 'Put a channel in slowmode',
usage: '[1-120 slowmode] [time it stays on]',
examples: ['267065637183029248']
usage: '[1-120 slowmode] [Number of minutes the slowmode stay active]',
examples: ['5 60']
}
});
}

View file

@ -14,9 +14,7 @@ class StarBoardCommand extends Command {
type: 'string',
prompt: {
start: 'What emote should be used to enter the shameboard?',
optional: true
},
default: '🌟'
},
{
id: 'count',
@ -34,7 +32,7 @@ class StarBoardCommand extends Command {
}
],
description: {
content: 'Set starboard --remove to remove the starboard',
content: 'Set starboard to the current channel. --remove to remove the starboard',
usage: '[emote] [minimum number required to enter starboard]',
examples: ['']
}

View file

@ -22,7 +22,6 @@ class TagCommand extends Command {
match: 'rest',
prompt: {
start: 'What word or sentence should the response be?',
optional: true
}
},
{

View file

@ -8,6 +8,7 @@ class FourchanCommand extends Command {
constructor() {
super('4chan', {
aliases: ['4chan'],
clientPermissions: ['EMBED_LINKS', 'SEND_MESSAGES'],
category: 'fun',
args: [

View file

@ -13,6 +13,7 @@ class asciifyCommand extends Command {
super('asciify', {
aliases: ['asciify'],
category: 'fun',
clientPermissions: ['SEND_MESSAGES'],
cooldown: 600000,
ratelimit: 2,
description: {

View file

@ -7,6 +7,7 @@ class dosentexistCommand extends Command {
super('dosentexist', {
aliases: ['doesntexist', 'thispersondoesnotexist', 'de'],
category: 'fun',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
description: {
content: 'Send images from thispersondoesnotexist.com',
usage: '',

View file

@ -6,6 +6,7 @@ class explosmCommand extends Command {
super('explosm', {
aliases: ['explosm', 'rcg'],
category: 'fun',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
description: {
content: 'Comic randomly generated from http://explosm.net/rcg',
usage: '',

View file

@ -8,6 +8,7 @@ class fakejoinCommand extends Command {
aliases: ['fakejoin'],
category: 'admin',
channelRestriction: 'guild',
clientPermissions: ['SEND_MESSAGES'],
args: [
{
id: 'member',

View file

@ -8,6 +8,7 @@ class fakeleaveCommand extends Command {
aliases: ['fakeleave'],
category: 'admin',
channelRestriction: 'guild',
clientPermissions: ['SEND_MESSAGES'],
args: [
{
id: 'member',

View file

@ -6,6 +6,7 @@ class InspiroBotCommand extends Command {
super('InspiroBot', {
aliases: ['inspirobot', 'ib'],
category: 'fun',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
description: {
content: 'Send images from Inspirobot',
usage: '',

View file

@ -6,6 +6,7 @@ class ImgurCommand extends Command {
super('imgur', {
aliases: ['imgur', 'badmeme'],
category: 'fun',
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
description: {
content: 'Send some random images from imgur',
usage: '',

View file

@ -7,6 +7,7 @@ class RedditCommand extends Command {
super('reddit', {
aliases: ['reddit'],
category: 'fun',
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
args: [
{
id: 'sub',

View file

@ -8,6 +8,7 @@ class spbCommand extends Command {
super('spb', {
aliases: ['spb'],
category: 'fun',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'link',

View file

@ -8,6 +8,7 @@ class dectalkCommand extends Command {
super('dectalk', {
aliases: ['dectalk', 'dec'],
category: 'fun',
clientPermissions: ['ATTACH_FILES'],
args: [
{
id: 'decMessage',

View file

@ -8,6 +8,7 @@ class dectalkvcCommand extends Command {
super('dectalkvc', {
aliases: ['dectalkvc', 'decvc'],
category: 'fun',
clientPermissions: ['ATTACH_FILES'],
args: [
{
id: 'decMessage',

View file

@ -8,6 +8,7 @@ class samCommand extends Command {
super('sam', {
aliases: ['sam'],
category: 'fun',
clientPermissions: ['ATTACH_FILES'],
args: [
{
id: 'samMessage',

View file

@ -8,6 +8,7 @@ class samvcCommand extends Command {
super('samvc', {
aliases: ['samvc'],
category: 'fun',
clientPermissions: ['ATTACH_FILES'],
args: [
{
id: 'samMessage',

View file

@ -9,6 +9,7 @@ class TtsCommand extends Command {
super('tts', {
aliases: ['tts'],
category: 'fun',
clientPermissions: ['ATTACH_FILES'],
args: [
{
id: 'text',

View file

@ -9,6 +9,7 @@ class TtsvcCommand extends Command {
super('ttsvc', {
aliases: ['ttsvc'],
category: 'fun',
clientPermissions: ['ATTACH_FILES'],
args: [
{
id: 'text',

View file

@ -9,6 +9,7 @@ class vidshittifierCommand extends Command {
super('vidshittifier', {
aliases: ['vidshittifier', 'vs', 'shittifier', 'vid2shit', 'v2s'],
category: 'fun',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'link',
@ -36,6 +37,7 @@ class vidshittifierCommand extends Command {
}
let input = `${os.tmpdir()}/${message.id}.mp4`;
let input2 = `${os.tmpdir()}/tmp${message.id}.mp4`;
let output = `${os.tmpdir()}/Shittified${message.id}.mp4`;
let compression;
@ -44,13 +46,11 @@ class vidshittifierCommand extends Command {
if (args.compression == 1) {
compression = '50k';
audioCompression = '100k';
} else if (args.compression == 2) {
} else {
compression = '30k';
audioCompression = '60k';
} else {
compression = '10k';
audioCompression = '20k';
}
let option = `-b:v ${compression} -b:a ${audioCompression}`;
let loadingmsg = await message.channel.send('Processing <a:loadingmin:527579785212329984>');
@ -70,7 +70,11 @@ class vidshittifierCommand extends Command {
}
function shittifie() {
exec(`ffmpeg -i ${input} ${option} -vcodec libx264 -r 15 -f mp4 ${output}`)
// reduce video resolution
exec(`ffmpeg -i ${input} -vf "scale=iw/4:ih/4" ${input2}`)
.then(() => {
// upscale video and change bitrate
exec(`ffmpeg -i ${input2} ${option} -vf "scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2" -vcodec libx264 -r 15 -f mp4 ${output}`)
.then(() => {
loadingmsg.delete();
message.delete();
@ -86,6 +90,7 @@ class vidshittifierCommand extends Command {
loadingmsg.delete();
return message.channel.send('On no! an error just occured! Im gonna be honest with you, i don\'t know what caused it yet! but worry not! my owner will look into it soon!');
});
});
}
}
}

View file

@ -10,6 +10,7 @@ class ytpCommand extends Command {
super('ytp', {
aliases: ['ytp', 'ytpplus', 'ytp+'],
category: 'fun',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'add',
@ -114,7 +115,7 @@ class ytpCommand extends Command {
let options = {
debug: false, // Better set this to false to avoid flood in console
debug: true, // Better set this to false to avoid flood in console
MAX_STREAM_DURATION: Math.floor((Math.random() * 3) + 1), // Random duration of video clip
sources: './asset/ytp/sources/',
sounds: './asset/ytp/sounds/',
@ -122,7 +123,7 @@ class ytpCommand extends Command {
resources: './asset/ytp/resources/',
temp: os.tmpdir(),
sourceList: asset,
outro: './asset/ytp/outro.mp4', // Need an outro or it won't work
//outro: './asset/ytp/outro.mp4', // Need an outro or it won't work
OUTPUT_FILE: `${os.tmpdir()}/${message.id}_YTP.mp4`,
MAX_CLIPS: MAX_CLIPS,
transitions: true,
@ -137,7 +138,7 @@ class ytpCommand extends Command {
effect_SpeedUp: true,
effect_SlowDown: true,
effect_Dance: true,
effect_Squidward: false // Not yet implemented
effect_Squidward: true // Not yet implemented
}
};
@ -145,7 +146,8 @@ class ytpCommand extends Command {
.then(() => {
loadingmsg.delete();
return message.reply('Here is your YTP!', {files: [`${os.tmpdir()}/${message.id}_YTP.mp4`]})
.catch(() => {
.catch(err => {
console.error(err);
return message.channel.send('Whoops, look like the vid might be too big for discord, my bad, please try again');
});
})

View file

@ -7,6 +7,7 @@ class AdviceCommand extends Command {
super('advice', {
aliases: ['advice'],
category: 'general',
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
description: {
content: 'Send some random advices',
usage: '',

View file

@ -5,6 +5,7 @@ class ClapCommand extends Command {
super('clap', {
aliases: ['clap'],
category: 'general',
clientPermissions: ['SEND_MESSAGES'],
args: [
{
id: 'text',

View file

@ -7,6 +7,7 @@ class EmotesayCommand extends Command {
super('emotesay', {
aliases: ['emotesay', 'esay'],
category: 'general',
clientPermissions: ['SEND_MESSAGES'],
args: [
{
id: 'text',

View file

@ -7,6 +7,7 @@ class SayCommand extends Command {
super('say', {
aliases: ['say'],
category: 'general',
clientPermissions: ['SEND_MESSAGES'],
args: [
{
id: 'text',

View file

@ -5,6 +5,7 @@ class spoilerCommand extends Command {
super('spoiler', {
aliases: ['spoiler'],
category: 'general',
clientPermissions: ['SEND_MESSAGES'],
args: [
{
id: 'text',

View file

@ -12,6 +12,7 @@ class tweetCommand extends Command {
super('tweet', {
aliases: ['tweet'],
category: 'general',
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
cooldown: 3600000,
ratelimit: 3,
args: [

View file

@ -7,6 +7,7 @@ class autocropCommand extends Command {
super('autocrop', {
aliases: ['autocrop', 'crop'],
category: 'images',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'link',

View file

@ -7,6 +7,7 @@ class blurCommand extends Command {
super('blur', {
aliases: ['blur'],
category: 'images',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'link',

View file

@ -7,6 +7,7 @@ class FetishCommand extends Command {
super('fetish', {
aliases: ['fetish'],
category: 'images',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'image',

View file

@ -7,6 +7,7 @@ class gaussianCommand extends Command {
super('gaussian', {
aliases: ['gaussian'],
category: 'images',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'link',

View file

@ -8,6 +8,7 @@ class GodCommand extends Command {
super('god', {
aliases: ['god'],
category: 'images',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'image',

View file

@ -7,6 +7,7 @@ class IdubbbzCommand extends Command {
super('idubbbz', {
aliases: ['idubbbz', 'edups'],
category: 'images',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'text',

View file

@ -7,6 +7,7 @@ class IdubbbzPaintCommand extends Command {
super('idubbbzpaint', {
aliases: ['idubbbzpaint', 'edupspaint'],
category: 'images',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'text',

View file

@ -7,6 +7,7 @@ class jpegifyCommand extends Command {
super('jpegify', {
aliases: ['jpegify'],
category: 'images',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'link',

View file

@ -7,6 +7,7 @@ class LikeCommand extends Command {
super('like', {
aliases: ['like'],
category: 'images',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'image',

View file

@ -9,6 +9,7 @@ class memeCommand extends Command {
super('meme', {
aliases: ['meme', 'impact'],
category: 'images',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'link',

View file

@ -7,6 +7,7 @@ class mirrorCommand extends Command {
super('mirror', {
aliases: ['mirror', 'flip'],
category: 'images',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'link',

View file

@ -11,6 +11,7 @@ class nolightCommand extends Command {
super('nolight', {
aliases: ['nolight', 'nl'],
category: 'images',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'text',

View file

@ -7,6 +7,7 @@ class paintCommand extends Command {
super('paint', {
aliases: ['paint'],
category: 'images',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'image',

View file

@ -7,6 +7,7 @@ class rotateCommand extends Command {
super('rotate', {
aliases: ['rotate'],
category: 'images',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'link',

View file

@ -7,6 +7,7 @@ class UglyCommand extends Command {
super('ugly', {
aliases: ['ugly'],
category: 'images',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'image',

View file

@ -10,6 +10,7 @@ class borgarCommand extends Command {
super('borgar', {
aliases: ['borgar', 'hamburgor', 'hamborgar', 'burger', 'hamburger', 'borger'],
category: 'minigame',
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
description: {
content: 'Make amborgar,,,,,,,,,, ( MINI GAME VERY WIP, LEVEL/XP SYSTEM MIGHT BE BULLSHIT )',
usage: '',

View file

@ -7,6 +7,7 @@ class guessCommand extends Command {
super('guess', {
aliases: ['guess'],
category: 'minigame',
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
args: [
{
id: 'leaderboard',

View file

@ -8,6 +8,7 @@ class aboutCommand extends Command {
super('about', {
aliases: ['about', 'credit'],
category: 'utility',
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
description: {
content: 'About me ( the bot )',
usage: '',

View file

@ -5,6 +5,7 @@ class AvatarCommand extends Command {
super('avatar', {
aliases: ['avatar', 'avy'],
category: 'utility',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'user',

View file

@ -6,6 +6,7 @@ class donateCommand extends Command {
super('donate', {
aliases: ['donate', 'donation', 'giveallmymoney', 'givemoney'],
category: 'utility',
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
description: {
content: 'Send donate link for the bot and support server',
usage: '',

View file

@ -6,6 +6,7 @@ class donatorCommand extends Command {
super('donator', {
aliases: ['donator'],
category: 'utility',
clientPermissions: ['SEND_MESSAGES'],
description: {
content: 'All the people who donated for this bot <3',
usage: '',

View file

@ -10,6 +10,7 @@ class DownloadCommand extends Command {
super('download', {
aliases: ['download', 'dl'],
category: 'utility',
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS', 'ATTACH_FILES'],
args: [
{
id: 'link',
@ -29,7 +30,6 @@ class DownloadCommand extends Command {
flag: ['--spoil', '--spoiler', '-s']
}
],
clientPermissions: ['ATTACH_FILES'],
description: {
content: 'Download videos from different website from the link you provided, use "-s" to make the vid a spoiler',
usage: '[link] [caption]',
@ -101,9 +101,9 @@ class DownloadCommand extends Command {
const Embed = new MessageEmbed()
.setColor(message.member.displayHexColor)
.setTitle(`Downloaded by ${message.author.username}`)
.setAuthor(`Downloaded by ${message.author.username}`, message.author.displayAvatarURL(), link)
.setDescription(args.caption)
.setURL(link);
.setFooter('You can get the original video by clicking on the "downloaded by" message!');
return message.channel.send({embed: Embed, files: [`${os.tmpdir()}/${fileName}compressed.mp4`]})
.catch(err => {
@ -118,9 +118,10 @@ class DownloadCommand extends Command {
const Embed = new MessageEmbed()
.setColor(message.member.displayHexColor)
.setTitle(`Downloaded by ${message.author.username}`)
.setAuthor(`Downloaded by ${message.author.username}`, message.author.displayAvatarURL(), link)
.setDescription(args.caption)
.setURL(link);
.setFooter('You can get the original video by clicking on the "downloaded by" message!');
return message.channel.send({embed: Embed, files: [`${os.tmpdir()}/${fileName}.mp4`]})
.catch(err => {

View file

@ -7,6 +7,7 @@ class FeedbackCommand extends Command {
super('feedback', {
aliases: ['feedback'],
category: 'utility',
clientPermissions: ['SEND_MESSAGES'],
args: [
{
id: 'text',
@ -40,6 +41,7 @@ class FeedbackCommand extends Command {
.addField('Feedback', args.text)
.setTimestamp();
channel.send({embed: Embed});
message.channel.send('Your feedback has been sent!');
}
}

View file

@ -10,6 +10,7 @@ class gif2vidCommand extends Command {
super('gif2vid', {
aliases: ['gif2vid', 'g2v', 'gv'],
category: 'utility',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'vid',

View file

@ -6,6 +6,7 @@ class InviteCommand extends Command {
super('invite', {
aliases: ['invite'],
category: 'utility',
clientPermissions: ['SEND_MESSAGES'],
args: [
{
id: 'here',

View file

@ -11,6 +11,7 @@ class PingCommand extends Command {
type: 'string',
}
],
clientPermissions: ['SEND_MESSAGES'],
description: {
content: 'Ping the bot',
usage: '',

View file

@ -6,6 +6,7 @@ class playCommand extends Command {
super('play', {
aliases: ['play'],
category: 'utility',
clientPermissions: ['SEND_MESSAGES', 'SPEAK'],
args: [
{
id: 'ytblink',

View file

@ -8,6 +8,7 @@ class seebannedwordCommand extends Command {
super('seebannedword', {
aliases: ['seebannedword', 'seeban', 'seebanword'],
category: 'utility',
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
channelRestriction: 'guild',
description: {
content: 'Show the list of banned word',

View file

@ -10,6 +10,7 @@ class seetagCommand extends Command {
super('taglist', {
aliases: ['seetag', 'taglist', 'tags'],
category: 'utility',
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
channelRestriction: 'guild',
args: [
{

View file

@ -6,6 +6,7 @@ class ServerCommand extends Command {
super('server', {
aliases: ['server', 'serverinfo'],
category: 'utility',
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
channelRestriction: 'guild',
description: {
content: 'Show info about the server',

View file

@ -5,6 +5,7 @@ class serverIconCommand extends Command {
super('serverIcon', {
aliases: ['serverIcon'],
category: 'utility',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'serverid',

View file

@ -9,6 +9,7 @@ class StatsCommand extends Command {
super('stats', {
aliases: ['stats'],
category: 'utility',
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
description: {
content: 'Show some stats about the bot',
usage: '',

View file

@ -6,6 +6,7 @@ class SayCommand extends Command {
super('strawpoll', {
aliases: ['strawpoll', 'poll'],
category: 'general',
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
args: [
{
id: 'title',

View file

@ -8,6 +8,7 @@ class TranslationCommand extends Command {
super('translation', {
aliases: ['translation', 'trn'],
category: 'utility',
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
args: [
{
id: 'language',

View file

@ -7,6 +7,7 @@ class UpdootCommand extends Command {
aliases: ['updoot', 'upvote', 'vote'],
category: 'utility',
channelRestriction: 'guild',
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
description: {
content: 'Send a link to vote for my bot',
usage: '',

View file

@ -10,6 +10,7 @@ class vid2gifCommand extends Command {
super('vid2gif', {
aliases: ['vid2gif', 'v2g', 'vg'],
category: 'utility',
clientPermissions: ['SEND_MESSAGES', 'ATTACH_FILES'],
args: [
{
id: 'vid',

View file

@ -9,6 +9,8 @@ class missingPermissionsListener extends Listener {
}
async exec(message, command, type, missing) {
if (missing == 'SEND_MESSAGES') return; // If bot can't send messages just do nothing
switch(type) {
case 'client':
message.reply(`Im missing the required permissions for this command!, \`${missing}\``);