From 5846742336f408a1488130b3dcb6f2f2d29ba4ca Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 8 May 2017 13:48:10 +0000 Subject: [PATCH] Fix that --- commands/avataredit/3000years.js | 2 +- commands/avataredit/beautiful.js | 2 +- commands/avataredit/bobross.js | 2 +- commands/avataredit/greyscale.js | 2 +- commands/avataredit/invert.js | 2 +- commands/avataredit/rip.js | 2 +- commands/avataredit/steamcard.js | 2 +- commands/avataredit/triggered.js | 2 +- commands/avataredit/wanted.js | 2 +- commands/random/meme.js | 2 +- commands/random/spam.js | 2 +- commands/randomimg/cat.js | 2 +- commands/randomimg/dog.js | 2 +- commands/randomimg/xiaopai.js | 2 +- commands/search/map.js | 2 +- structures/PostgreSQL.js | 4 ++-- 16 files changed, 17 insertions(+), 17 deletions(-) diff --git a/commands/avataredit/3000years.js b/commands/avataredit/3000years.js index e6fb60a3..2082877f 100644 --- a/commands/avataredit/3000years.js +++ b/commands/avataredit/3000years.js @@ -35,7 +35,7 @@ module.exports = class YearsCommand extends Command { az.getBuffer(Jimp.MIME_PNG, (err, buff) => { if (err) return msg.say(`An Error Occurred: ${err}`); return msg.channel.send({ files: [{ attachment: buff, name: 'az.png' }] }) - .catch (err => msg.say(`An Error Occurred: ${err}`)); + .catch(err => msg.say(`An Error Occurred: ${err}`)); }); } }; diff --git a/commands/avataredit/beautiful.js b/commands/avataredit/beautiful.js index f72a7273..67a85aa9 100644 --- a/commands/avataredit/beautiful.js +++ b/commands/avataredit/beautiful.js @@ -36,7 +36,7 @@ module.exports = class BeautifulCommand extends Command { grunkle.getBuffer(Jimp.MIME_PNG, (err, buff) => { if (err) return msg.say(`An Error Occurred: ${err}`); return msg.channel.send({ files: [{ attachment: buff, name: 'beautiful.png' }] }) - .catch (err => msg.say(`An Error Occurred: ${err}`)); + .catch(err => msg.say(`An Error Occurred: ${err}`)); }); } }; diff --git a/commands/avataredit/bobross.js b/commands/avataredit/bobross.js index e42351ba..0f04efa7 100644 --- a/commands/avataredit/bobross.js +++ b/commands/avataredit/bobross.js @@ -38,7 +38,7 @@ module.exports = class BobRossCommand extends Command { blank.getBuffer(Jimp.MIME_PNG, (err, buff) => { if (err) return msg.say(`An Error Occurred: ${err}`); return msg.channel.send({ files: [{ attachment: buff, name: 'bobross.png' }] }) - .catch (err => msg.say(`An Error Occurred: ${err}`)); + .catch(err => msg.say(`An Error Occurred: ${err}`)); }); } }; diff --git a/commands/avataredit/greyscale.js b/commands/avataredit/greyscale.js index 106191c8..455fc2c6 100644 --- a/commands/avataredit/greyscale.js +++ b/commands/avataredit/greyscale.js @@ -31,7 +31,7 @@ module.exports = class GreyscaleCommand extends Command { avatar.getBuffer(Jimp.MIME_PNG, (err, buff) => { if (err) return msg.say(`An Error Occurred: ${err}`); return msg.channel.send({ files: [{ attachment: buff, name: 'greyscale.png' }] }) - .catch (err => msg.say(`An Error Occurred: ${err}`)); + .catch(err => msg.say(`An Error Occurred: ${err}`)); }); } }; diff --git a/commands/avataredit/invert.js b/commands/avataredit/invert.js index 37e34d19..b6a5fb48 100644 --- a/commands/avataredit/invert.js +++ b/commands/avataredit/invert.js @@ -30,7 +30,7 @@ module.exports = class InvertCommand extends Command { avatar.getBuffer(Jimp.MIME_PNG, (err, buff) => { if (err) return msg.say(`An Error Occurred: ${err}`); return msg.channel.send({ files: [{ attachment: buff, name: 'invert.png' }] }) - .catch (err => msg.say(`An Error Occurred: ${err}`)); + .catch(err => msg.say(`An Error Occurred: ${err}`)); }); } }; diff --git a/commands/avataredit/rip.js b/commands/avataredit/rip.js index 56a2c562..8370c29d 100644 --- a/commands/avataredit/rip.js +++ b/commands/avataredit/rip.js @@ -36,7 +36,7 @@ module.exports = class RIPCommand extends Command { grave.getBuffer(Jimp.MIME_PNG, (err, buff) => { if (err) return msg.say(`An Error Occurred: ${err}`); return msg.channel.send({ files: [{ attachment: buff, name: 'rip.png' }] }) - .catch (err => msg.say(`An Error Occurred: ${err}`)); + .catch(err => msg.say(`An Error Occurred: ${err}`)); }); } }; diff --git a/commands/avataredit/steamcard.js b/commands/avataredit/steamcard.js index ffade4bf..f72e66f7 100644 --- a/commands/avataredit/steamcard.js +++ b/commands/avataredit/steamcard.js @@ -40,7 +40,7 @@ module.exports = class SteamCardCommand extends Command { blank.getBuffer(Jimp.MIME_PNG, (err, buff) => { if (err) return msg.say(`An Error Occurred: ${err}`); return msg.channel.send({ files: [{ attachment: buff, name: 'steamcard.png' }] }) - .catch (err => msg.say(`An Error Occurred: ${err}`)); + .catch(err => msg.say(`An Error Occurred: ${err}`)); }); } }; diff --git a/commands/avataredit/triggered.js b/commands/avataredit/triggered.js index b990e160..3d88dff7 100644 --- a/commands/avataredit/triggered.js +++ b/commands/avataredit/triggered.js @@ -36,7 +36,7 @@ module.exports = class TriggeredCommand extends Command { blank.getBuffer(Jimp.MIME_PNG, (err, buff) => { if (err) return msg.say(`An Error Occurred: ${err}`); return msg.channel.send({ files: [{ attachment: buff, name: 'triggered.png' }] }) - .catch (err => msg.say(`An Error Occurred: ${err}`)); + .catch(err => msg.say(`An Error Occurred: ${err}`)); }); } }; diff --git a/commands/avataredit/wanted.js b/commands/avataredit/wanted.js index b8e9e086..a065ecf4 100644 --- a/commands/avataredit/wanted.js +++ b/commands/avataredit/wanted.js @@ -34,7 +34,7 @@ module.exports = class WantedCommand extends Command { wanted.getBuffer(Jimp.MIME_PNG, (err, buff) => { if (err) return msg.say(`An Error Occurred: ${err}`); return msg.channel.send({ files: [{ attachment: buff, name: 'wanted.png' }] }) - .catch (err => msg.say(`An Error Occurred: ${err}`)); + .catch(err => msg.say(`An Error Occurred: ${err}`)); }); } }; diff --git a/commands/random/meme.js b/commands/random/meme.js index dca5f137..0dfee015 100644 --- a/commands/random/meme.js +++ b/commands/random/meme.js @@ -42,6 +42,6 @@ module.exports = class MemeCommand extends Command { return msg.say('This Command requires the `Attach Files` Permission.'); const { type, top, bottom } = args; return msg.channel.send({ files: [`https://memegen.link/${type}/${top}/${bottom}.jpg`] }) - .catch (err => msg.say(`An Error Occurred: ${err}`)); + .catch(err => msg.say(`An Error Occurred: ${err}`)); } }; diff --git a/commands/random/spam.js b/commands/random/spam.js index 69c4fd57..abf47fbb 100644 --- a/commands/random/spam.js +++ b/commands/random/spam.js @@ -15,6 +15,6 @@ module.exports = class SpamCommand extends Command { if (!msg.channel.permissionsFor(this.client.user).has('ATTACH_FILES')) return msg.say('This Command requires the `Attach Files` Permission.'); return msg.channel.send({ files: ['https://i.imgur.com/2JFu5xE.jpg'] }) - .catch (err => msg.say(`An Error Occurred: ${err}`)); + .catch(err => msg.say(`An Error Occurred: ${err}`)); } }; diff --git a/commands/randomimg/cat.js b/commands/randomimg/cat.js index 9478cca3..9f7123ca 100644 --- a/commands/randomimg/cat.js +++ b/commands/randomimg/cat.js @@ -20,7 +20,7 @@ module.exports = class CatCommand extends Command { const { body } = await request .get('http://random.cat/meow'); return msg.channel.send({ files: [body.file] }) - .catch (err => msg.say(`An Error Occurred: ${err}`)); + .catch(err => msg.say(`An Error Occurred: ${err}`)); } catch (err) { return msg.say(`An Error Occurred: ${err}`); } diff --git a/commands/randomimg/dog.js b/commands/randomimg/dog.js index f8ec4f6b..7203778d 100644 --- a/commands/randomimg/dog.js +++ b/commands/randomimg/dog.js @@ -19,7 +19,7 @@ module.exports = class DogCommand extends Command { const { body } = await request .get('https://random.dog/woof.json'); return msg.channel.send({ files: [body.url] }) - .catch (err => msg.say(`An Error Occurred: ${err}`)); + .catch(err => msg.say(`An Error Occurred: ${err}`)); } catch (err) { return msg.say(`An Error Occurred: ${err}`); } diff --git a/commands/randomimg/xiaopai.js b/commands/randomimg/xiaopai.js index 9d4c88ed..8ec6d178 100644 --- a/commands/randomimg/xiaopai.js +++ b/commands/randomimg/xiaopai.js @@ -18,6 +18,6 @@ module.exports = class XiaoCommand extends Command { return msg.say('This Command requires the `Attach Files` Permission.'); const xiao = xiaos[Math.floor(Math.random() * xiaos.length)]; return msg.channel.send({ files: [xiao] }) - .catch (err => msg.say(`An Error Occurred: ${err}`)); + .catch(err => msg.say(`An Error Occurred: ${err}`)); } }; diff --git a/commands/search/map.js b/commands/search/map.js index c3ed582a..d5eec4e4 100644 --- a/commands/search/map.js +++ b/commands/search/map.js @@ -39,7 +39,7 @@ module.exports = class MapCommand extends Command { const { body } = await request .get(`https://maps.googleapis.com/maps/api/staticmap?center=${query}&zoom=${zoom}&size=500x500&key=${process.env.GOOGLE_KEY}`); return msg.channel.send({ files: [{ attachment: body, name: 'map.png' }] }) - .catch (err => msg.say(`An Error Occurred: ${err}`)); + .catch(err => msg.say(`An Error Occurred: ${err}`)); } catch (err) { return msg.say(`An Error Occurred: ${err}`); } diff --git a/structures/PostgreSQL.js b/structures/PostgreSQL.js index 8075cb00..9d569319 100644 --- a/structures/PostgreSQL.js +++ b/structures/PostgreSQL.js @@ -12,10 +12,10 @@ class Database { .then(() => console.log('[Database] Synchronizing...')) .then(() => database.sync() .then(() => console.log('[Database] Synchronizing complete!')) - .catch (err => console.error(`[Database] Error synchronizing: ${err}`)) + .catch(err => console.error(`[Database] Error synchronizing: ${err}`)) ) .then(() => console.log('[Database] Ready!')) - .catch (err => console.error(`[Database] Unable to connect: ${err}`)); + .catch(err => console.error(`[Database] Unable to connect: ${err}`)); } }