mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 16:19:12 +02:00
Bottom Text Command
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
const Command = require('../../structures/Command');
|
||||
|
||||
module.exports = class BottomTextCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'bottom-text',
|
||||
group: 'edit-meme',
|
||||
memberName: 'bottom-text',
|
||||
description: 'Sends a bottom text meme.',
|
||||
throttling: {
|
||||
usages: 1,
|
||||
duration: 10
|
||||
},
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: 'ShareFonts.net',
|
||||
url: 'https://www.wfonts.com/',
|
||||
reason: 'Impact Font',
|
||||
reasonURL: 'https://www.wfonts.com/font/impact'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'top',
|
||||
prompt: 'What should the top row of the meme to be?',
|
||||
type: 'string',
|
||||
max: 50,
|
||||
parse: top => top.toUpperCase()
|
||||
},
|
||||
{
|
||||
key: 'image',
|
||||
prompt: 'What image would you like to edit?',
|
||||
type: 'image-or-avatar',
|
||||
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 2048 })
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, { top, image }) {
|
||||
return this.client.registry.commands.get('meme-gen-classic').run(msg, { top, bottom: 'BOTTOM TEXT', image });
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user