This commit is contained in:
Loic Bersier 2018-12-30 05:35:51 +01:00
parent 6a0a30ee7e
commit a4e403ff6e
4 changed files with 30 additions and 2 deletions

View file

@ -9,6 +9,12 @@ class GodCommand extends Command {
super('god', { super('god', {
aliases: ['god'], aliases: ['god'],
category: 'images', category: 'images',
args: [
{
id: 'image',
type: 'string'
}
]
}); });
} }

View file

@ -8,10 +8,22 @@ class IdubbbzCommand extends Command {
super('idubbbz', { super('idubbbz', {
aliases: ['idubbbz', 'edups'], aliases: ['idubbbz', 'edups'],
category: 'images', category: 'images',
split: 'quoted',
args: [
{
id: 'text',
type: 'string'
},
{
id: 'image',
type: 'string'
}
]
}); });
} }
async exec(message, args) { async exec(message, args) {
let text = args.text;
let Attachment = (message.attachments).array(); let Attachment = (message.attachments).array();
let image = args.image; let image = args.image;
if (!Attachment[0] && !image) if (!Attachment[0] && !image)

View file

@ -8,10 +8,21 @@ class IdubbbzPaintCommand extends Command {
super('idubbbzpaint', { super('idubbbzpaint', {
aliases: ['idubbbzpaint', 'edupspaint'], aliases: ['idubbbzpaint', 'edupspaint'],
category: 'images', category: 'images',
args: [
{
id: 'text',
type: 'string'
},
{
id: 'image',
type: 'string'
}
]
}); });
} }
async exec(message, args) { async exec(message, args) {
let text = args.text;
let Attachment = (message.attachments).array(); let Attachment = (message.attachments).array();
let image = args.image; let image = args.image;
if (!Attachment[0] && !image) if (!Attachment[0] && !image)

View file

@ -12,7 +12,6 @@ class UglyCommand extends Command {
{ {
id: 'image', id: 'image',
type: 'string', type: 'string',
optional: true,
} }
] ]
}); });