diff --git a/assets/images/yoff/blastyoff.png b/assets/images/yoff/blastyoff.png new file mode 100644 index 00000000..a271ae03 Binary files /dev/null and b/assets/images/yoff/blastyoff.png differ diff --git a/assets/images/yoff.png b/assets/images/yoff/default.png similarity index 100% rename from assets/images/yoff.png rename to assets/images/yoff/default.png diff --git a/assets/images/yoff/disyoffjs.png b/assets/images/yoff/disyoffjs.png new file mode 100644 index 00000000..2aca2f36 Binary files /dev/null and b/assets/images/yoff/disyoffjs.png differ diff --git a/assets/images/yoff/yoffcirius.png b/assets/images/yoff/yoffcirius.png new file mode 100644 index 00000000..2c0c751f Binary files /dev/null and b/assets/images/yoff/yoffcirius.png differ diff --git a/assets/images/yoff/yoffice.png b/assets/images/yoff/yoffice.png new file mode 100644 index 00000000..88152409 Binary files /dev/null and b/assets/images/yoff/yoffice.png differ diff --git a/assets/images/yoff/yofficer.png b/assets/images/yoff/yofficer.png new file mode 100644 index 00000000..42309e5e Binary files /dev/null and b/assets/images/yoff/yofficer.png differ diff --git a/commands/single/yoff.js b/commands/single/yoff.js index ef133ddf..9ac6740c 100644 --- a/commands/single/yoff.js +++ b/commands/single/yoff.js @@ -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`)] }); } }; diff --git a/package.json b/package.json index 6ea9ca33..d60ab296 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "136.1.0", + "version": "136.1.1", "description": "Your personal server companion.", "main": "Xiao.js", "private": true,