More convincing fly

This commit is contained in:
Daniel Odendahl Jr
2018-10-04 16:48:30 +00:00
parent 4203dd15ec
commit 8c6d3fee08
4 changed files with 17 additions and 4 deletions

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 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', '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`)] });
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "92.1.6",
"version": "92.1.7",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {