From 0bd0e6c24814be0370318f09858d3b703d14500f Mon Sep 17 00:00:00 2001 From: Supositware Date: Sat, 23 Mar 2019 19:04:30 +0100 Subject: [PATCH] Moved spb.js to general and image in the img folder --- commands/{utility => general}/spb.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename commands/{utility => general}/spb.js (81%) diff --git a/commands/utility/spb.js b/commands/general/spb.js similarity index 81% rename from commands/utility/spb.js rename to commands/general/spb.js index 83d61adc..bb4ad563 100644 --- a/commands/utility/spb.js +++ b/commands/general/spb.js @@ -6,7 +6,7 @@ class spbCommand extends Command { constructor() { super('spb', { aliases: ['spb'], - category: 'utility', + category: 'general', args: [ { id: 'link', @@ -30,10 +30,10 @@ class spbCommand extends Command { fetch(link) .then(res => { - const dest = fs.createWriteStream('./spb.png'); + const dest = fs.createWriteStream('./img/spb.png'); res.body.pipe(dest); dest.on('finish', () => { - return message.channel.send({files: ['./spb.png']}); + return message.channel.send({files: ['./img/spb.png']}); }); }); }