diff --git a/assets/images/dark-theme-light-theme.png b/assets/images/dark-theme-light-theme/default.png similarity index 100% rename from assets/images/dark-theme-light-theme.png rename to assets/images/dark-theme-light-theme/default.png diff --git a/assets/images/dark-theme-light-theme/moth.png b/assets/images/dark-theme-light-theme/moth.png new file mode 100644 index 00000000..4ce7bb55 Binary files /dev/null and b/assets/images/dark-theme-light-theme/moth.png differ diff --git a/commands/single/dark-theme-light-theme.js b/commands/single/dark-theme-light-theme.js index 267c309d..781d782d 100644 --- a/commands/single/dark-theme-light-theme.js +++ b/commands/single/dark-theme-light-theme.js @@ -1,5 +1,7 @@ const Command = require('../../structures/Command'); const path = require('path'); +const { list } = require('../../util/Util'); +const types = ['default', 'moth']; module.exports = class DarkThemeLightThemeCommand extends Command { constructor(client) { @@ -9,11 +11,24 @@ module.exports = class DarkThemeLightThemeCommand extends Command { group: 'single', memberName: 'dark-theme-light-theme', description: 'Determines whether you use dark or light theme.', - 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', 'dark-theme-light-theme.png')] }); + run(msg, { type }) { + return msg.say({ files: [ + path.join(__dirname, '..', '..', 'assets', 'images', 'dark-theme-light-theme', `${type}.png`) + ] }); } }; diff --git a/package.json b/package.json index 01842d85..a2125e71 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "92.1.2", + "version": "92.1.3", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {