/pokemon-go-query

Pokemon Go Query, help to find the nearest pokemon

Primary LanguageJavaScript

Pokemon Go Query

Pokemon Go Query offer you to be a slack notification or a facebook chatbot. Inspired by Go Notify. Data from Poke Radar and Pkget.

Usage

Require nodejs.

First, npm install.

Slack Notify

open google map find your location, ex:https://www.google.com.tw/maps/@25.032101,121.5556329,16z?hl=zh-TW.

$ export LAT=25.032101
$ export LNT=121.5556329
$ export DIST=1000
$ export SLACK_URL=YOUR SLACK INCOMING HOOK URL
$ npm run slack

Facebook bot

Require ngrok.

  1. create facebook app for page
  2. add messenger to products
  3. add webhooks to products
  4. get your face page access token
$ export TOKEN=<FACEBOOK_PAGE_TOKEN>
$ export PORT=3000
$ npm start
$ ngrok http 3000

Line bot

Require ngrok.

  1. apply line bot developer

Use the same server with facebook bot but different endpoint.

$ export CHANNEL_ID=<CHANNEL_ID>
$ export CHANNEL_SECRET=<CHANNEL_SECRET>
$ export MID=<MID>

More information:

LICENSE

MIT, Ly Cheng lyforever62@hotmail.com