c2839bd1e1 | ||
---|---|---|
src | ||
.env.sample | ||
.gitignore | ||
LICENSE | ||
README.md | ||
package-lock.json | ||
package.json | ||
pub-redis-example.js |
README.md
NotificamBot
Telegram bot to reiceve notification.
Notificambot reads notifications from a queue (pub/sub on redis).
Configuration
- Create telegram bot with @BotFather.
- Clone this repository.
- Start a redis instance on localhost.
- Install dependencies with
npm install
. - Configure env file (and rename from
env.sampe
to.env
). - Launch with
node src/server.js
You can configure events into src/template.js
.
Test
You can perform a test with command: node pub-redis-example.js