From a4e403ff6e074aa160c4a80017dda1c06786f8af Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Sun, 30 Dec 2018 05:35:51 +0100 Subject: [PATCH] --- commands/images/god.js | 8 +++++++- commands/images/idubbbz.js | 12 ++++++++++++ commands/images/idubbbzpaint.js | 11 +++++++++++ commands/images/ugly.js | 1 - 4 files changed, 30 insertions(+), 2 deletions(-) diff --git a/commands/images/god.js b/commands/images/god.js index 28cea92..9daca44 100644 --- a/commands/images/god.js +++ b/commands/images/god.js @@ -9,6 +9,12 @@ class GodCommand extends Command { super('god', { aliases: ['god'], category: 'images', + args: [ + { + id: 'image', + type: 'string' + } + ] }); } @@ -21,7 +27,7 @@ class GodCommand extends Command { return message.channel.send('Gif dosent work, sorry') else if (!image) image = Attachment[0].url - + message.channel.send('Processing ') .then(loadingmsg => loadingmsg.delete(1000)) diff --git a/commands/images/idubbbz.js b/commands/images/idubbbz.js index ee3663c..71f6483 100644 --- a/commands/images/idubbbz.js +++ b/commands/images/idubbbz.js @@ -8,10 +8,22 @@ class IdubbbzCommand extends Command { super('idubbbz', { aliases: ['idubbbz', 'edups'], category: 'images', + split: 'quoted', + args: [ + { + id: 'text', + type: 'string' + }, + { + id: 'image', + type: 'string' + } + ] }); } async exec(message, args) { + let text = args.text; let Attachment = (message.attachments).array(); let image = args.image; if (!Attachment[0] && !image) diff --git a/commands/images/idubbbzpaint.js b/commands/images/idubbbzpaint.js index f9078f3..2614f93 100644 --- a/commands/images/idubbbzpaint.js +++ b/commands/images/idubbbzpaint.js @@ -8,10 +8,21 @@ class IdubbbzPaintCommand extends Command { super('idubbbzpaint', { aliases: ['idubbbzpaint', 'edupspaint'], category: 'images', + args: [ + { + id: 'text', + type: 'string' + }, + { + id: 'image', + type: 'string' + } + ] }); } async exec(message, args) { + let text = args.text; let Attachment = (message.attachments).array(); let image = args.image; if (!Attachment[0] && !image) diff --git a/commands/images/ugly.js b/commands/images/ugly.js index ea10347..5cbad48 100644 --- a/commands/images/ugly.js +++ b/commands/images/ugly.js @@ -12,7 +12,6 @@ class UglyCommand extends Command { { id: 'image', type: 'string', - optional: true, } ] });