2020-06-21 17:24:53 +02:00
|
|
|
# NotificamBot
|
|
|
|
|
2020-06-21 17:35:36 +02:00
|
|
|
Telegram bot to reiceve notifications.
|
2020-06-21 17:24:53 +02:00
|
|
|
|
|
|
|
Notificambot reads notifications from a queue (pub/sub on redis).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Configuration
|
2020-06-21 17:29:46 +02:00
|
|
|
1. Create telegram bot with **@BotFather**.
|
2020-06-21 17:24:53 +02:00
|
|
|
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`
|
|
|
|
|
|
|
|
|
2020-06-21 17:33:17 +02:00
|
|
|
You can configure templates into `src/templates.js`.
|
2020-06-21 17:24:53 +02:00
|
|
|
|
|
|
|
## Test
|
|
|
|
|
|
|
|
You can perform a test with command: `node pub-redis-example.js`
|