Add more yoffs

This commit is contained in:
Dragon Fire
2021-04-23 11:27:19 -04:00
parent 2e8e89e582
commit ae1d47a109
8 changed files with 24 additions and 5 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 734 KiB

Before

Width:  |  Height:  |  Size: 655 KiB

After

Width:  |  Height:  |  Size: 655 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 996 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 624 KiB

+23 -4
View File
@@ -1,18 +1,37 @@
const Command = require('../../structures/Command');
const path = require('path');
const { list } = require('../../util/Util');
const types = ['default', 'blastyoff', 'disyoffjs', 'yoffcirius', 'yoffice', 'yofficer'];
module.exports = class SourceCommand extends Command {
module.exports = class YoffCommand extends Command {
constructor(client) {
super(client, {
name: 'yoff',
group: 'single',
memberName: 'yoff',
description: 'Posts a picture that truly defines modern art.',
clientPermissions: ['ATTACH_FILES']
clientPermissions: ['ATTACH_FILES'],
credit: [
{
name: '1Computer1',
url: 'https://github.com/1Computer1',
reason: 'Images'
}
],
args: [
{
key: 'type',
prompt: `What type of yoff do you want to see? 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', 'yoff.png')] });
run(msg, { type }) {
return msg.say({ files: [path.join(__dirname, '..', '..', 'assets', 'images', 'yoff', `${type}.png`)] });
}
};
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "136.1.0",
"version": "136.1.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"private": true,