mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
44 lines
1.0 KiB
JavaScript
44 lines
1.0 KiB
JavaScript
const Command = require('../../framework/Command');
|
|
const { PermissionFlagsBits } = require('discord.js');
|
|
|
|
module.exports = class BottomTextCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'bottom-text',
|
|
group: 'edit-meme',
|
|
description: 'Sends a bottom text meme.',
|
|
throttling: {
|
|
usages: 2,
|
|
duration: 10
|
|
},
|
|
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
|
credit: [
|
|
{
|
|
name: 'ShareFonts.net',
|
|
url: 'https://www.wfonts.com/',
|
|
reason: 'Impact Font',
|
|
reasonURL: 'https://www.wfonts.com/font/impact'
|
|
}
|
|
],
|
|
args: [
|
|
{
|
|
key: 'top',
|
|
type: 'string',
|
|
max: 50,
|
|
parse: top => top.toUpperCase()
|
|
},
|
|
{
|
|
key: 'image',
|
|
type: 'image-or-avatar',
|
|
avatarSize: 512,
|
|
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512, forceStatic: true })
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
run(msg, { top, image }) {
|
|
return this.client.registry.commands.get('meme-gen').run(msg, { top, bottom: 'BOTTOM TEXT', image });
|
|
}
|
|
};
|