mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 15:57:50 +02:00
Prefix Change and General Code Improvements
This commit is contained in:
@@ -40,7 +40,7 @@ module.exports = class MapCommand extends Command {
|
||||
try {
|
||||
const response = await snekfetch
|
||||
.get(`https://maps.googleapis.com/maps/api/staticmap?center=${location}&zoom=${zoom}&size=500x500&key=${process.env.GOOGLE_KEY}`);
|
||||
return message.channel.sendFile(response.body);
|
||||
return message.channel.send({file: response.body});
|
||||
}
|
||||
catch (err) {
|
||||
return message.say(':x: Error! Something went wrong! Make sure you entered the location correctly!');
|
||||
|
||||
Reference in New Issue
Block a user