Add more yoffs
|
After Width: | Height: | Size: 734 KiB |
|
Before Width: | Height: | Size: 655 KiB After Width: | Height: | Size: 655 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 133 KiB |
|
After Width: | Height: | Size: 996 KiB |
|
After Width: | Height: | Size: 624 KiB |
@@ -1,18 +1,37 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const path = require('path');
|
||||
const { list } = require('../../util/Util');
|
||||
const types = ['default', 'blastyoff', 'disyoffjs', 'yoffcirius', 'yoffice', 'yofficer'];
|
||||
|
||||
module.exports = class SourceCommand extends Command {
|
||||
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: ['ATTACH_FILES']
|
||||
clientPermissions: ['ATTACH_FILES'],
|
||||
credit: [
|
||||
{
|
||||
name: '1Computer1',
|
||||
url: 'https://github.com/1Computer1',
|
||||
reason: 'Images'
|
||||
}
|
||||
],
|
||||
args: [
|
||||
{
|
||||
key: 'type',
|
||||
prompt: `What type of yoff do you want to see? Either ${list(types, 'or')}.`,
|
||||
type: 'string',
|
||||
default: 'default',
|
||||
oneOf: types,
|
||||
parse: type => type.toLowerCase()
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg) {
|
||||
return msg.say({ files: [path.join(__dirname, '..', '..', 'assets', 'images', 'yoff.png')] });
|
||||
run(msg, { type }) {
|
||||
return msg.say({ files: [path.join(__dirname, '..', '..', 'assets', 'images', 'yoff', `${type}.png`)] });
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "136.1.0",
|
||||
"version": "136.1.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"private": true,
|
||||
|
||||