mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 15:57:50 +02:00
More Stoof
This commit is contained in:
@@ -41,7 +41,10 @@ module.exports = class MapCommand extends Command {
|
||||
size: '500x500',
|
||||
key: GOOGLE_KEY
|
||||
});
|
||||
return msg.say({ files: [{ attachment: body, name: 'map.png' }] });
|
||||
return msg.say(`<https://www.google.com/maps/search/${encodeURIComponent(query)}>`, { files: [{
|
||||
attachment: body,
|
||||
name: 'map.png'
|
||||
}] });
|
||||
} catch (err) {
|
||||
return msg.say(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user