mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
37 lines
934 B
JavaScript
37 lines
934 B
JavaScript
const Command = require('../../framework/Command');
|
|
const { PermissionFlagsBits } = require('discord.js');
|
|
const path = require('path');
|
|
const types = ['default', 'blastyoff', 'disyoffjs', 'yoffcirius', 'yoffice', 'yofficer', 'gameyoff'];
|
|
|
|
module.exports = class YoffCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'yoff',
|
|
group: 'single',
|
|
memberName: 'yoff',
|
|
description: 'Posts a picture that truly defines modern art.',
|
|
clientPermissions: [PermissionFlagsBits.AttachFiles],
|
|
credit: [
|
|
{
|
|
name: '1Computer1',
|
|
url: 'https://github.com/1Computer1',
|
|
reason: 'Images'
|
|
}
|
|
],
|
|
args: [
|
|
{
|
|
key: 'type',
|
|
type: 'string',
|
|
default: 'default',
|
|
oneOf: types,
|
|
parse: type => type.toLowerCase()
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
run(msg, { type }) {
|
|
return msg.say({ files: [path.join(__dirname, '..', '..', 'assets', 'images', 'yoff', `${type}.png`)] });
|
|
}
|
|
};
|