This commit is contained in:
Daniel Odendahl Jr
2017-05-08 13:48:10 +00:00
parent 8ba552b21a
commit 5846742336
16 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -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}`);
}