Moth dark-theme-light-theme

This commit is contained in:
Daniel Odendahl Jr
2018-10-03 22:52:18 +00:00
parent 211afce0dd
commit 09f7bb0392
4 changed files with 19 additions and 4 deletions

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

+18 -3
View File
@@ -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`)
] });
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "92.1.2",
"version": "92.1.3",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {