Remove text on fly by default

This commit is contained in:
Dragon Fire
2020-05-04 11:22:36 -04:00
parent 7c5afe1e43
commit 609b769703
4 changed files with 4 additions and 17 deletions

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

+3 -16
View File
@@ -1,7 +1,5 @@
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) {
@@ -10,22 +8,11 @@ module.exports = class FlyCommand extends Command {
group: 'single',
memberName: 'fly',
description: 'Sends a fake fly that looks surprisngly real.',
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()
}
]
clientPermissions: ['ATTACH_FILES']
});
}
run(msg, { type }) {
return msg.say({ files: [path.join(__dirname, '..', '..', 'assets', 'images', 'fly', `${type}.png`)] });
run(msg) {
return msg.say({ files: [path.join(__dirname, '..', '..', 'assets', 'images', 'fly.png')] });
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "114.1.1",
"version": "114.1.2",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {