You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Francesco Esposito 058cc2d743
Merge pull request #7 from franjsco/dependabot/npm_and_yarn/axios-0.21.1
3 weeks ago
src Edit username 1 year ago
.babelrc Setup project 1 year ago
.dockerignore Add Dockerfile 1 year ago
.editorconfig Initial setup 1 year ago
.env.sample Edit .env sample 1 year ago
.eslintrc.js Setup project 1 year ago
.gitignore Initial setup 1 year ago
Dockerfile edit Dockerfile 1 year ago
LICENSE Initial commit 1 year ago
README.md update readme 9 months ago
package-lock.json Bump axios from 0.19.2 to 0.21.1 2 months ago
package.json Bump axios from 0.19.2 to 0.21.1 2 months ago
screenshot.jpg update readme & dependencies 9 months ago

README.md

Welcome to umbrello-bot ☂️

License: GPL--3.0--or--later Twitter: franjsco

A telegram bot to know if you need to take the umbrella.

Install

  1. Install Node.js and npm.
  2. Install MongoDB.
  3. Configure umbrello-api.
  4. Clone this repository.
  5. Install dependencies with npm install.
  6. Create a new bot with @BotFather on Telegram
  7. Create env file or set environment variables (read: “Environment variables”)
  8. Build the code with npm run build.
  9. 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)

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