Go to file
Francesco Esposito 8e3b3ca8bf Update && add Dockerfile 2022-01-31 16:19:33 +01:00
src Update && add Dockerfile 2022-01-31 16:19:33 +01:00
.env.sample Update && add Dockerfile 2022-01-31 16:19:33 +01:00
.gitignore Initial version 2020-06-21 17:24:53 +02:00
Dockerfile Update && add Dockerfile 2022-01-31 16:19:33 +01:00
LICENSE Initial commit 2020-06-18 16:10:14 +02:00
README.md edit readme 2020-06-21 17:35:36 +02:00
docker-compose.yml Update && add Dockerfile 2022-01-31 16:19:33 +01:00
package-lock.json Update && add Dockerfile 2022-01-31 16:19:33 +01:00
package.json Update && add Dockerfile 2022-01-31 16:19:33 +01:00
pub-redis-example.js Update && add Dockerfile 2022-01-31 16:19:33 +01:00

README.md

NotificamBot

Telegram bot to reiceve notifications.

Notificambot reads notifications from a queue (pub/sub on redis).

Configuration

  1. Create telegram bot with @BotFather.
  2. Clone this repository.
  3. Start a redis instance on localhost.
  4. Install dependencies with npm install.
  5. Configure env file (and rename from env.sampe to .env).
  6. Launch with node src/server.js

You can configure templates into src/templates.js.

Test

You can perform a test with command: node pub-redis-example.js