diff --git a/example.js b/example.js index 2f8708d..a0823fd 100644 --- a/example.js +++ b/example.js @@ -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); }