mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 22:01:54 +02:00
Moth dark-theme-light-theme
This commit is contained in:
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "92.1.2",
|
||||
"version": "92.1.3",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user