add another location example

This commit is contained in:
Pedro Lopez
2020-02-08 00:54:21 -04:00
parent 7b229a39a4
commit 065a9212ba

View File

@@ -123,6 +123,8 @@ client.on('message', async msg => {
client.sendMessage(msg.from, attachmentData, {caption: 'Here\'s your requested media.'});
}
} else if(msg.body == '!location') {
msg.reply(new Location(37.422, -122.084, 'Googleplex\nGoogle Headquarters'));
} else if(msg.location) {
msg.reply(msg.location);
}