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.
- create facebook app for page
- add messenger to products
- add webhooks to products
- get your face page access token
$ export TOKEN=<FACEBOOK_PAGE_TOKEN>
$ export PORT=3000
$ npm start
$ ngrok http 3000
Line bot
Require ngrok.
- 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:
- Facebook Messenger bot 15 minute tutorial
- [教學] Facebook Messenger API
- 用 Python 開發 Facebook Bot
- [教學] Line BOT API
LICENSE
MIT, Ly Cheng lyforever62@hotmail.com