From 065a9212bab0b315e8d32959c8c660f04cdcabec Mon Sep 17 00:00:00 2001 From: Pedro Lopez Date: Sat, 8 Feb 2020 00:54:21 -0400 Subject: [PATCH] add another location example --- example.js | 2 ++ 1 file changed, 2 insertions(+) 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); }