diff --git a/commands/utility/gif2vid.js b/commands/utility/gif2vid.js index 47f0155..69787b3 100644 --- a/commands/utility/gif2vid.js +++ b/commands/utility/gif2vid.js @@ -26,7 +26,14 @@ class gif2vidCommand extends Command { } async exec(message, args) { + + + let Attachment = (message.attachments).array(); let vid = args.vid; + // Get attachment link + if (Attachment[0] && !args.vid) { + vid = Attachment[0].url; + } let loadingmsg = await message.channel.send('Processing '); diff --git a/commands/utility/vid2gif.js b/commands/utility/vid2gif.js index c85a753..04fb36e 100644 --- a/commands/utility/vid2gif.js +++ b/commands/utility/vid2gif.js @@ -35,7 +35,12 @@ class vid2gifCommand extends Command { } async exec(message, args) { + let Attachment = (message.attachments).array(); let vid = args.vid; + // Get attachment link + if (Attachment[0] && !args.vid) { + vid = Attachment[0].url; + } let loadingmsg = await message.channel.send('Processing ');