Skip to content

Commit

Permalink
add another location example
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroslopez committed Feb 8, 2020
1 parent 7b229a3 commit 065a921
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 065a921

Please sign in to comment.