Remove Stuff

This commit is contained in:
Daniel Odendahl Jr
2017-06-22 03:17:03 +00:00
parent 046a559342
commit 5e7a8d17ad
38 changed files with 40 additions and 704 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = class YearsCommand extends Command {
description: 'Draws a user\'s avatar over Pokémon\'s "It\'s been 3000 years" meme.',
throttling: {
usages: 1,
duration: 15
duration: 30
},
clientPermissions: ['ATTACH_FILES'],
args: [
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = class BeautifulCommand extends Command {
description: 'Draws a user\'s avatar over Gravity Falls\' "Oh, this? This is beautiful." meme.',
throttling: {
usages: 1,
duration: 15
duration: 30
},
clientPermissions: ['ATTACH_FILES'],
args: [
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = class BobRossCommand extends Command {
description: 'Draws a user\'s avatar over Bob Ross\' canvas.',
throttling: {
usages: 1,
duration: 15
duration: 30
},
clientPermissions: ['ATTACH_FILES'],
args: [
+1 -1
View File
@@ -18,7 +18,7 @@ module.exports = class CardCommand extends Command {
guildOnly: true,
throttling: {
usages: 1,
duration: 15
duration: 30
},
clientPermissions: ['ATTACH_FILES'],
args: [
+1 -1
View File
@@ -14,7 +14,7 @@ module.exports = class ChallengerCommand extends Command {
description: 'Draws a user\'s avatar over Super Smash Bros.\'s "Challenger Approaching" screen.',
throttling: {
usages: 1,
duration: 15
duration: 30
},
clientPermissions: ['ATTACH_FILES'],
args: [
+1 -1
View File
@@ -14,7 +14,7 @@ module.exports = class DexterCommand extends Command {
description: 'Draws a user\'s avatar over Dexter from Pokémon\'s screen.',
throttling: {
usages: 1,
duration: 15
duration: 30
},
clientPermissions: ['ATTACH_FILES'],
args: [
+1 -1
View File
@@ -12,7 +12,7 @@ module.exports = class GreyscaleCommand extends Command {
description: 'Draws a user\'s avatar in greyscale.',
throttling: {
usages: 1,
duration: 15
duration: 30
},
clientPermissions: ['ATTACH_FILES'],
args: [
+1 -1
View File
@@ -11,7 +11,7 @@ module.exports = class InvertCommand extends Command {
description: 'Draws a user\'s avatar inverted.',
throttling: {
usages: 1,
duration: 15
duration: 30
},
clientPermissions: ['ATTACH_FILES'],
args: [
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = class RIPCommand extends Command {
description: 'Draws a user\'s avatar over a gravestone.',
throttling: {
usages: 1,
duration: 15
duration: 30
},
clientPermissions: ['ATTACH_FILES'],
args: [
+1 -1
View File
@@ -14,7 +14,7 @@ module.exports = class SimbaCommand extends Command {
description: 'Draws a user\'s avatar over Simba from The Lion King\'s reflection.',
throttling: {
usages: 1,
duration: 15
duration: 30
},
clientPermissions: ['ATTACH_FILES'],
args: [
+1 -1
View File
@@ -14,7 +14,7 @@ module.exports = class SteamCardCommand extends Command {
description: 'Draws a user\'s avatar over a Steam card.',
throttling: {
usages: 1,
duration: 15
duration: 30
},
clientPermissions: ['ATTACH_FILES'],
args: [
+1 -1
View File
@@ -14,7 +14,7 @@ module.exports = class TriggeredCommand extends Command {
description: 'Draws a user\'s avatar over a Triggered meme.',
throttling: {
usages: 1,
duration: 15
duration: 30
},
clientPermissions: ['ATTACH_FILES'],
args: [
+1 -1
View File
@@ -14,7 +14,7 @@ module.exports = class WantedCommand extends Command {
description: 'Draws a user\'s avatar over a wanted poster.',
throttling: {
usages: 1,
duration: 15
duration: 30
},
clientPermissions: ['ATTACH_FILES'],
args: [
+1 -1
View File
@@ -33,7 +33,7 @@ module.exports = class BanCommand extends Command {
}
async run(msg, args) {
const modlogs = msg.guild.channels.get(msg.guild.settings.get('modLog'));
const modlogs = msg.guild.channels.find('name', 'mod-log');
const { member, reason } = args;
if (!member.bannable) return msg.say('This member is not bannable. Perhaps they have a higher role than me?');
await msg.say(`Are you sure you want to ban ${member.user.tag} (${member.id})?`);
+1 -1
View File
@@ -33,7 +33,7 @@ module.exports = class KickCommand extends Command {
}
async run(msg, args) {
const modlogs = msg.guild.channels.get(msg.guild.settings.get('modLog'));
const modlogs = msg.guild.channels.find('name', 'mod-log');
const { member, reason } = args;
if (!member.kickable) return msg.say('This member is not kickable. Perhaps they have a higher role than me?');
await msg.say(`Are you sure you want to kick ${member.user.tag} (${member.id})?`);
+1 -1
View File
@@ -33,7 +33,7 @@ module.exports = class SoftbanCommand extends Command {
}
async run(msg, args) {
const modlogs = msg.guild.channels.get(msg.guild.settings.get('modLog'));
const modlogs = msg.guild.channels.find('name', 'mod-log');
const { member, reason } = args;
if (!member.bannable) return msg.say('This member is not bannable. Perhaps they have a higher role than me?');
await msg.say(`Are you sure you want to softban ${member.user.tag} (${member.id})?`);
+1 -1
View File
@@ -33,7 +33,7 @@ module.exports = class UnbanCommand extends Command {
}
async run(msg, args) {
const modlogs = msg.guild.channels.get(msg.guild.settings.get('modLog'));
const modlogs = msg.guild.channels.find('name', 'mod-log');
const { id, reason } = args;
const bans = await msg.guild.fetchBans();
if (!bans.has(id)) return msg.say('This ID is not in the Guild Banlist.');
+1 -1
View File
@@ -32,7 +32,7 @@ module.exports = class WarnCommand extends Command {
}
async run(msg, args) {
const modlogs = msg.guild.channels.get(msg.guild.settings.get('modLog'));
const modlogs = msg.guild.channels.find('name', 'mod-log');
const { member, reason } = args;
await msg.say(`Are you sure you want to warn ${member.user.tag} (${member.id})?`);
const msgs = await msg.channel.awaitMessages((res) => res.author.id === msg.author.id, {
-51
View File
@@ -1,51 +0,0 @@
const Command = require('../../structures/Command');
const { RichEmbed } = require('discord.js');
const { stripIndents } = require('common-tags');
const moment = require('moment');
module.exports = class StarCommand extends Command {
constructor(client) {
super(client, {
name: 'star',
group: 'random',
memberName: 'star',
description: 'Stars a message, sending it to the starboard.',
args: [
{
key: 'id',
prompt: 'What is the ID of the message you wish to star?',
type: 'string'
}
]
});
this.starred = [];
}
async run(msg, args, reaction) {
const { id } = args;
const channel = msg.guild.channels.get(msg.guild.settings.get('starboard'));
if (!channel || this.starred.includes(id)) return null;
const message = await msg.channel.fetchMessage(id);
if (!reaction && msg.author.id === message.author.id) return msg.reply('You cannot star your own messages.');
this.starred.push(id);
if (!channel.permissionsFor(this.client.user).has('SEND_MESSAGES')) {
return msg.say('Could not send the message to the starboard.');
} else if (channel.permissionsFor(this.client.user).has('EMBED_LINKS')) {
const embed = new RichEmbed()
.setColor(0xFFFF00)
.setAuthor(message.author.tag, message.author.displayAvatarURL)
.setDescription(message.content)
.setImage(message.attachments.first() ? message.attachments.first().url : null)
.setFooter(moment(message.createdTimestamp).format('MMMM Do YYYY h:mm:ss A'));
return channel.send({ embed });
} else {
return msg.say(stripIndents`
**Author:** ${message.author.tag}
**Content:** ${message.content}
**Date:** ${moment(message.createdTimestamp).format('MMMM Do YYYY h:mm:ss A')}
${message.attachments.first() ? `**Image:** ${message.attachments.first().url}` : ''}
`);
}
}
};
-32
View File
@@ -1,32 +0,0 @@
const Command = require('../../structures/Command');
const settings = require('../../assets/json/clear-setting');
module.exports = class ClearSettingCommand extends Command {
constructor(client) {
super(client, {
name: 'clear-setting',
group: 'settings',
memberName: 'clear-setting',
description: 'Removes a custom setting from your server.',
guildOnly: true,
userPermissions: ['ADMINISTRATOR'],
args: [
{
key: 'setting',
prompt: 'What setting do you want to clear?',
type: 'string',
validate: (setting) => {
if (settings.includes(setting)) return true;
else return `Please enter one of the following: ${settings.join(', ')}`;
}
}
]
});
}
run(msg, args) {
const { setting } = args;
msg.guild.settings.remove(setting);
return msg.say(`${setting} has been removed from your server settings.`);
}
};
-19
View File
@@ -1,19 +0,0 @@
const Command = require('../../structures/Command');
module.exports = class InviteGuardCommand extends Command {
constructor(client) {
super(client, {
name: 'invite-guard',
group: 'settings',
memberName: 'invite-guard',
description: 'Turns on auto-deletion of invites.',
guildOnly: true,
userPermissions: ['ADMINISTRATOR']
});
}
run(msg) {
msg.guild.settings.set('inviteGuard', true);
return msg.say('Invite Guard is now active.');
}
};
-27
View File
@@ -1,27 +0,0 @@
const Command = require('../../structures/Command');
module.exports = class JoinRoleCommand extends Command {
constructor(client) {
super(client, {
name: 'join-role',
group: 'settings',
memberName: 'join-role',
description: 'Sets a role that new members are automatically joined to.',
guildOnly: true,
userPermissions: ['ADMINISTRATOR'],
args: [
{
key: 'role',
prompt: 'What role should new members be joined to?',
type: 'role'
}
]
});
}
run(msg, args) {
const { role } = args;
msg.guild.settings.set('joinRole', role.id);
return msg.say(`Join Role set to ${role.name}.`);
}
};
-27
View File
@@ -1,27 +0,0 @@
const Command = require('../../structures/Command');
module.exports = class MemberLogCommand extends Command {
constructor(client) {
super(client, {
name: 'member-channel',
group: 'settings',
memberName: 'member-channel',
description: 'Sets a channel for member join/leave logs to be sent.',
guildOnly: true,
userPermissions: ['ADMINISTRATOR'],
args: [
{
key: 'channel',
prompt: 'What is the channel you want to send logs to?',
type: 'channel'
}
]
});
}
run(msg, args) {
const { channel } = args;
msg.guild.settings.set('memberLog', channel.id);
return msg.say(`Member Log channel set to ${channel.name}.`);
}
};
-47
View File
@@ -1,47 +0,0 @@
const Command = require('../../structures/Command');
module.exports = class MemberMsgCommand extends Command {
constructor(client) {
super(client, {
name: 'member-message',
aliases: ['member-msg'],
group: 'settings',
memberName: 'member-message',
description: 'Sets the message for either join/leave logs to use.',
details: '**Placeholders:** <user>: Username, <server>: Server Name, <mention>: A Mention of the User',
guildOnly: true,
userPermissions: ['ADMINISTRATOR'],
args: [
{
key: 'type',
prompt: 'Which message would you like to change? Please enter either `joinMsg` or `leaveMsg`.',
type: 'string',
validate: (type) => {
if (['joinMsg', 'leaveMsg'].includes(type)) return true;
else return 'Please enter either `joinMsg` or `leaveMsg`.';
}
},
{
key: 'message',
prompt: 'What should be sent to the channel? Use <user>, <server>, and <mention> as placeholders.',
type: 'string',
validate: (message) => {
if (message.length < 150) return true;
else return 'Invalid Message. Message must be under 150 characters.';
}
}
]
});
}
run(msg, args) {
const { type, message } = args;
if (type === 'joinMsg') {
msg.guild.settings.set('joinMsg', message);
return msg.say(`Join Message set to "${message}".`);
} else {
msg.guild.settings.set('leaveMsg', message);
return msg.say(`Leave Message set to "${message}".`);
}
}
};
-27
View File
@@ -1,27 +0,0 @@
const Command = require('../../structures/Command');
module.exports = class ModChannelCommand extends Command {
constructor(client) {
super(client, {
name: 'mod-channel',
group: 'settings',
memberName: 'mod-channel',
description: 'Sets a channel for mod logs to be sent.',
guildOnly: true,
userPermissions: ['ADMINISTRATOR'],
args: [
{
key: 'channel',
prompt: 'What is the channel you want to send logs to?',
type: 'channel'
}
]
});
}
run(msg, args) {
const { channel } = args;
msg.guild.settings.set('modLog', channel.id);
return msg.say(`Mod Log channel set to ${channel.name}.`);
}
};
-33
View File
@@ -1,33 +0,0 @@
const Command = require('../../structures/Command');
const { stripIndents } = require('common-tags');
module.exports = class SettingListCommand extends Command {
constructor(client) {
super(client, {
name: 'setting-list',
group: 'settings',
memberName: 'setting-list',
description: 'Shows a list of current guild settings.',
guildOnly: true
});
}
run(msg) {
const modLog = msg.guild.channels.get(msg.guild.settings.get('modLog'));
const memberLog = msg.guild.channels.get(msg.guild.settings.get('memberLog'));
const singleRole = msg.guild.roles.get(msg.guild.settings.get('singleRole'));
const joinRole = msg.guild.roles.get(msg.guild.settings.get('joinRole'));
const starboard = msg.guild.channels.get(msg.guild.settings.get('starboard'));
return msg.say(stripIndents`
**Prefix:** ${msg.guild.commandPrefix}
**Invite Guard:** ${msg.guild.settings.get('inviteGuard', false)}
**Mod Channel:** ${modLog ? modLog.name : 'None'}
**Starboard:** ${starboard ? starboard.name : 'None'}
**Join Role:** ${joinRole ? joinRole.name : 'None'}
**Member Channel:** ${memberLog ? memberLog.name : 'None'}
**Join Message:** ${msg.guild.settings.get('joinMsg', 'Welcome <user>! (Default)')}
**Leave Message:** ${msg.guild.settings.get('leaveMsg', 'Bye <user>... (Default)')}
**Single Role:** ${singleRole ? singleRole.name : 'None'}
`);
}
};
-27
View File
@@ -1,27 +0,0 @@
const Command = require('../../structures/Command');
module.exports = class SingleRoleCommand extends Command {
constructor(client) {
super(client, {
name: 'single-role',
group: 'settings',
memberName: 'single-role',
description: 'Sets a single role that is able to use commands.',
guildOnly: true,
userPermissions: ['ADMINISTRATOR'],
args: [
{
key: 'role',
prompt: 'What role should be able to use commands?',
type: 'role'
}
]
});
}
run(msg, args) {
const { role } = args;
msg.guild.settings.set('singleRole', role.id);
return msg.say(`Single role mode has been enabled with the role ${role.name}.`);
}
};
-27
View File
@@ -1,27 +0,0 @@
const Command = require('../../structures/Command');
module.exports = class StarboardCommand extends Command {
constructor(client) {
super(client, {
name: 'starboard',
group: 'settings',
memberName: 'starboard',
description: 'Sets a channel for the starboard.',
guildOnly: true,
userPermissions: ['ADMINISTRATOR'],
args: [
{
key: 'channel',
prompt: 'What is the channel you want to set as the starboard?',
type: 'channel'
}
]
});
}
run(msg, args) {
const { channel } = args;
msg.guild.settings.set('starboard', channel.id);
return msg.say(`Starboard set to ${channel.name}.`);
}
};