09b634b036
Bumps [json5](https://github.com/json5/json5) from 2.1.3 to 2.2.3. - [Release notes](https://github.com/json5/json5/releases) - [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md) - [Commits](https://github.com/json5/json5/compare/v2.1.3...v2.2.3) --- updated-dependencies: - dependency-name: json5 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
src | ||
.babelrc | ||
.dockerignore | ||
.editorconfig | ||
.env.sample | ||
.eslintrc.js | ||
.gitignore | ||
Dockerfile | ||
LICENSE | ||
README.md | ||
package-lock.json | ||
package.json | ||
screenshot.jpg |
README.md
Welcome to umbrello-bot ☂️
A telegram bot to know if you need to take the umbrella.
Install
- Install Node.js and npm.
- Install MongoDB.
- Configure umbrello-api.
- Clone this repository.
- Install dependencies with
npm install
. - Create a new bot with @BotFather on Telegram
- Create env file or set environment variables (read: "Environment variables")
- Build the code with
npm run build
. - Launch the bot with
npm run serve
.
Environment Variables.
NODE_ENV=production
TELEGRAM_TOKEN=token-here
UMBRELLO_API_URL=url-here
DB_HOST=mongodb://host:port/db
DB_USER=user
DB_PASSWORD=pass
Usage
1. Search the city.
Search the city id with:
/search [city name]
example: /search Roma
It will send back the cities id.
2. Set the city.
Set the city wth:
/set [city id]
example: /set 3169070
. (3169070= Rome, IT)
3. Get the forecasts.
Get the forecasts with:
/get
Build Docker image
# cd umbrello-bot/
# docker build -t umbrello-bot .
# docker run umbrello-bot
Author
👤 franjsco (Francesco Esposito)
- Website: https://franjsco.github.io/
- Twitter: @franjsco
- Github: @franjsco
Show your support
Give a ⭐️ if this project helped you!
📝 License
Copyright © 2020 franjsco (Francesco Esposito).
This project is GPL--3.0--or--later licensed.
This README was generated with ❤️ by readme-md-generator