Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dramforever/nixos-updates-bot
Nix channel updates bot for Telegram
https://github.com/dramforever/nixos-updates-bot
Last synced: about 1 month ago
JSON representation
Nix channel updates bot for Telegram
- Host: GitHub
- URL: https://github.com/dramforever/nixos-updates-bot
- Owner: dramforever
- License: isc
- Created: 2019-10-07T01:57:50.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-16T01:52:36.000Z (about 4 years ago)
- Last Synced: 2023-05-19T10:26:05.900Z (over 1 year ago)
- Language: JavaScript
- Size: 105 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NixOS Updates Bot for Telegram
*(Add the bot Join the channel at )*
Periodically checks for Nix channel updates and posts them in a channel. Also, sends private messages for subscribed updates.
## Usage
Watch the channel , or send, say, `/subscribe nixpkgs-unstable` to .
## Deployment
Why would you want to do that?
If you want to somehow deploy *another* *same* bot:
- Configuration is currently a bit hard-coded. Change code according to your needs
- Specify these environment variables
- `BOT_SECRET`: A secret string to use in webhooks
- `TELEGRAM_KEY`: Your Telegram bot key
- `DATABASE_URL`: A Postgresql connection URL
- `ARMED`: `true` if you want the bot to send Telegram messages (or any non-reply requests to the Telegram servers at all)
- `PORT`: Port to listen on. Defaults to `5000`
- Set webhook to `.../webhook/$BOT_SECRET` using the Telegram Bot API manually.
- Periodically `POST` to `/update` with json like `{ "secret": "", "action": "update" }`. An update will run in the background after some delay (`0` to `60` seconds random).## Icon
Icon based on [Nix official icon](https://github.com/NixOS/nixos-artwork/blob/master/logo/nix-snowflake.svg) and [Octicons `radio-tower](https://octicons.github.com/icon/radio-tower/).