seery v1.0.1
Command list
/pocket: get pocket article/nba: get nba scores/mlb: get mlb scores/hn: get top 20 hacker news articles/wakatime: get wakatime summary/shorturl: get short url
Service List
/pocket
- Get a random article from last week
- Get all articles from last week
NBA
/nba
nba command helper
/nba y
get yesterday's scores
/nba t
get today's scores
/nba tmr
get tomorrow schedule
/nba [YYYYMMDD]
get scores/schedule of some day
MLB
/mlb
mlb command helper
/mlb y
get yesterday's scores
/mlb t
get today's scores
/mlb tmr
get tomorrow schedule
/mlb [YYYYMMDD]
get scores/schedule of some day
Hacker News
/hn
get top 20 hacker news articles
Wakatime
/wakatime
get wakatime report
/wakatime_auth [secret_key]
To let Seery get your wakatime data, user needs to input
secret_keyto make bot query data
short url
/shorturl
get short url helper message
/shorturl [url]
short
urland Seery will return the shorted url
Development
Install dependencies
yarn installUpdate config
Look up env/ folder, and change all **.sample.js to your setting.
For example:
bot.config.development.sample.js → bot.config.development.js
Then, use your development telegram, pocket token.
Running local server
Open ngrok
I suggest to use ngrok to create a tunnel to localhost, and use this url to link to telegram.
You can look up the document to install ngrok.
After installing, open ngrok:
ngrok http 5000Open dev server
Open mongodb, and run development server
npm run devTest your bot
After finishing above steps, try type something in your dev bot.
You should get the proper response.
Any PR and idea are welcome.
License
MIT @ctxhou