mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Move Groups Around
This commit is contained in:
@@ -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}`));
|
||||
}
|
||||
};
|
||||
@@ -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"
|
||||
]
|
||||
Reference in New Issue
Block a user