add another location example
This commit is contained in:
parent
7b229a39a4
commit
065a9212ba
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue