diff --git a/assets/images/fly.png b/assets/images/fly/blank.png similarity index 100% rename from assets/images/fly.png rename to assets/images/fly/blank.png diff --git a/assets/images/fly/default.png b/assets/images/fly/default.png new file mode 100644 index 00000000..5ba70059 Binary files /dev/null and b/assets/images/fly/default.png differ diff --git a/commands/single/fly.js b/commands/single/fly.js index 7f46c532..85bd950a 100644 --- a/commands/single/fly.js +++ b/commands/single/fly.js @@ -1,5 +1,7 @@ const Command = require('../../structures/Command'); const path = require('path'); +const { list } = require('../../util/Util'); +const types = ['default', 'blank']; module.exports = class FlyCommand extends Command { constructor(client) { @@ -9,11 +11,22 @@ module.exports = class FlyCommand extends Command { group: 'single', memberName: 'fly', description: 'Sends a fake fly that looks surprisngly real.', - clientPermissions: ['ATTACH_FILES'] + details: `**Types:** ${types.join(', ')}`, + clientPermissions: ['ATTACH_FILES'], + args: [ + { + key: 'type', + prompt: `What type of meme do you want to use? 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', 'fly.png')] }); + run(msg, { type }) { + return msg.say({ files: [path.join(__dirname, '..', '..', 'assets', 'images', 'fly', `${type}.png`)] }); } }; diff --git a/package.json b/package.json index 5189acfd..1e1cf190 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "92.1.6", + "version": "92.1.7", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {