|
3 weeks ago | |
---|---|---|
src | 1 year ago | |
.babelrc | 1 year ago | |
.dockerignore | 1 year ago | |
.editorconfig | 1 year ago | |
.env.sample | 1 year ago | |
.eslintrc.js | 1 year ago | |
.gitignore | 1 year ago | |
Dockerfile | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 9 months ago | |
package-lock.json | 2 months ago | |
package.json | 2 months ago | |
screenshot.jpg | 9 months ago |
A telegram bot to know if you need to take the umbrella.
npm install
.npm run build
.npm run serve
.NODE_ENV=production
TELEGRAM_TOKEN=token-here
UMBRELLO_API_URL=url-here
DB_HOST=mongodb://host:port/db
DB_USER=user
DB_PASSWORD=pass
Search the city id with:
/search [city name]
example: /search Roma
It will send back the cities id.
Set the city wth:
/set [city id]
example: /set 3169070
. (3169070= Rome, IT)
Get the forecasts with:
/get
# cd umbrello-bot/
# docker build -t umbrello-bot .
# docker run umbrello-bot
👤 franjsco (Francesco Esposito)
Give a ⭐️ if this project helped you!
Copyright © 2020 franjsco (Francesco Esposito).
This project is GPL--3.0--or--later licensed.
This README was generated with ❤️ by readme-md-generator