mirror of
https://github.com/franjsco/NotificamBot
synced 2025-02-19 21:00:45 +01:00
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.8. - [Release notes](https://github.com/minimistjs/minimist/releases) - [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md) - [Commits](https://github.com/minimistjs/minimist/compare/v1.2.5...v1.2.8) --- updated-dependencies: - dependency-name: minimist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
NotificamBot
Telegram bot to receive notifications reads from a queue (pub/sub on Redis).
Configuration
Rename .env.sample in .env and configure it:
KEY | DESCRIPTION |
---|---|
BOT_TOKEN | Telegram Bot Token created with @BotFather |
CHAT_ID | Your chat id with the bot (you can configure this after the first launch of the bot from client) |
REDIS_CHANELL | Channel where the bot reads |
REDIS_HOST | Host redis (don't touch if you use docker-compose). |
REDIS_PASSWORD | Redis password |
Usage
- Clone the project with
git clone https://github.com/franjsco/NotificamBot.git
- Build docker image and run it with docker-compose:
docker-compose up --build
- Search your bot on telegram and start it. The chat id will be displayed on the terminal. Copy it into .env and stop (CTRL+C) and start containers.
docker-compose up
- Now you can perform a test.
node test-publish.js
- You can send notifications to the bot by connecting to the container redis instance from any application and post messages to the configured queue.
Description
Languages
JavaScript
92.2%
Dockerfile
7.8%