Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dx3mod/repostbot
Bot for forwarding user's posts from VK to Telegram chat
https://github.com/dx3mod/repostbot
Last synced: about 2 months ago
JSON representation
Bot for forwarding user's posts from VK to Telegram chat
- Host: GitHub
- URL: https://github.com/dx3mod/repostbot
- Owner: dx3mod
- Created: 2024-07-15T18:28:08.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-11-10T14:25:30.000Z (about 2 months ago)
- Last Synced: 2024-11-10T15:26:11.684Z (about 2 months ago)
- Language: OCaml
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# repostbot
Bot for forwarding user's posts from VK to Telegram chat.
## Usage
Installation.
```bash
opam pin https://github.com/dx3mod/repostbot.git
```See systemd [service example](./service/) where [`EnvironmentFile`][EnvFile] must contain variables:
```dotenv
VK_TOKEN="..."
TG_TOKEN="..."TARGET_USER="..."
TARGET_CHAT="..."CACHE_FILE="..."
INTERVAL=10
```Minimal cache file:
```clojure
((last_post_id ...) (posts ()))
```[EnvFile]: https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#EnvironmentFile=