seery
A service integration telegram robot
Last updated 2 years ago by ctxhou .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install seery 
SYNC missed versions from official npm registry.

Seery

A service integration telegram robot
Start Using



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

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

3 Versions

  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (20)
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |