Move Groups Around

This commit is contained in:
Daniel Odendahl Jr
2017-05-06 03:57:56 +00:00
parent 77b3a8ead8
commit c27ed061fb
8 changed files with 7 additions and 8 deletions
-47
View File
@@ -1,47 +0,0 @@
const { Command } = require('discord.js-commando');
const codes = require('./memecodes');
module.exports = class MemeCommand extends Command {
constructor(client) {
super(client, {
name: 'meme',
group: 'imageedit',
memberName: 'meme',
description: 'Sends a Meme with text of your choice, and a background of your choice.',
details: `**Codes:** ${codes.join(', ')}`,
args: [
{
key: 'type',
prompt: 'What meme type do you want to use?',
type: 'string',
validate: type => {
if(codes.includes(type.toLowerCase())) return true;
return 'Invalid meme type. Use `help meme` to view a list of meme types.';
},
parse: type => type.toLowerCase()
},
{
key: 'top',
prompt: 'What should the top row of the meme to be?',
type: 'string',
parse: top => encodeURIComponent(top.replace(/[ ]/g, '-'))
},
{
key: 'bottom',
prompt: 'What should the bottom row of the meme to be?',
type: 'string',
parse: bottom => encodeURIComponent(bottom.replace(/[ ]/g, '-'))
}
]
});
}
run(msg, args) {
if(msg.channel.type !== 'dm')
if(!msg.channel.permissionsFor(this.client.user).has('ATTACH_FILES'))
return msg.say('This Command requires the `Attach Files` Permission.');
const { type, top, bottom } = args;
return msg.channel.send({ files: [`https://memegen.link/${type}/${top}/${bottom}.jpg`] })
.catch(err => msg.say(`An Error Occurred: ${err}`));
}
};
-97
View File
@@ -1,97 +0,0 @@
[
"tenguy",
"afraid",
"older",
"aag",
"tried",
"biw",
"blb",
"kermit",
"bd",
"ch",
"cbg",
"wonka",
"cb",
"keanu",
"dsm",
"live",
"ants",
"doge",
"alwaysonbeat",
"ermg",
"facepalm",
"fwp",
"fa",
"fbf",
"fry",
"hipster",
"icanhas",
"crazypills",
"mw",
"noidea",
"regret",
"boat",
"hagrid",
"sohappy",
"captain",
"inigo",
"iw",
"ackbar",
"happening",
"joker",
"ive",
"ll",
"morpheus",
"mb",
"badchoice",
"mmm",
"jetpack",
"red",
"mordor",
"oprah",
"oag",
"remembers",
"philosoraptor",
"jw",
"patrick",
"rollsafe",
"sad-obama",
"sad-clinton",
"sadfrog",
"sad-bush",
"sad-biden",
"sad-boehner",
"saltbae",
"sarcasticbear",
"dwight",
"sb",
"ss",
"sf",
"dodgson",
"money",
"sohot",
"nice",
"awesome-awkward",
"awesome",
"awkward-awesome",
"awkward",
"fetch",
"success",
"scc",
"ski",
"officespace",
"interesting",
"toohigh",
"bs",
"center",
"both",
"winter",
"xy",
"buzz",
"yodawg",
"uno",
"yallgot",
"bad",
"elf",
"chosen"
]