Add Steve Cave

This commit is contained in:
Dragon Fire
2021-04-01 18:03:54 -04:00
parent da5d207038
commit 6b525ca187
3 changed files with 16 additions and 3 deletions

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

+16 -3
View File
@@ -1,5 +1,7 @@
const Command = require('../../structures/Command');
const path = require('path');
const { list } = require('../../util/Util');
const types = ['default', 'steve'];
module.exports = class CaveCommand extends Command {
constructor(client) {
@@ -9,11 +11,22 @@ module.exports = class CaveCommand extends Command {
group: 'single',
memberName: 'cave',
description: 'Sends a Minecraft cave that blends in with the chat.',
clientPermissions: ['ATTACH_FILES']
details: `**Types:** ${types.join(', ')}`,
clientPermissions: ['ATTACH_FILES'],
args: [
{
key: 'type',
prompt: `What type of cave 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', 'cave.png')] });
run(msg, { type }) {
return msg.say({ files: [path.join(__dirname, '..', '..', 'assets', 'images', 'cave', `${type}.png`)] });
}
};