1.0.1 • Published 6 years ago

seery v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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

/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_key to make bot query data

short url

/shorturl

get short url helper message

/shorturl [url]

short url and Seery will return the shorted url

Development

Install dependencies

yarn install

Update config

Look up env/ folder, and change all **.sample.js to your setting.

For example:

bot.config.development.sample.jsbot.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 5000

Open dev server

Open mongodb, and run development server

npm run dev

Test 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