Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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=