https://github.com/poiscript/sagiri
[WIP] Embedding kitsu.io services into Telegram.
https://github.com/poiscript/sagiri
matrix rust telegram
Last synced: 11 months ago
JSON representation
[WIP] Embedding kitsu.io services into Telegram.
- Host: GitHub
- URL: https://github.com/poiscript/sagiri
- Owner: PoiScript
- License: mit
- Created: 2017-01-23T12:06:41.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-20T06:13:04.000Z (over 8 years ago)
- Last Synced: 2025-01-22T06:13:19.846Z (about 1 year ago)
- Topics: matrix, rust, telegram
- Language: Rust
- Homepage:
- Size: 151 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Sagiri
===
[WIP] Embedding kitsu.io services into Telegram.
Start
---
Firstly, make sure that you have installed rustc and cargo.
If not, I recommend you using [rustup](https://rustup.rs).
Secondly, clone the full repositry and build:
```
$ git clone https://github.com/PoiScript/sagiri.git
$ cd sagiri
$ env TOKEN=BOT_TOKEN cargo build --release
```
Now, you can run sagiri using `env TOKEN=BOT_TOKEN cargo run --release`.
To run it automatically, use a simple systemd service:
```yml
# /etc/systemd/system/sagiri.service
[Unit]
Description=Embedding kitsu.io services into Telegram.
ConditionFileNotEmpty=/path/to/sagiri/Cargo.toml
[Service]
Environment=TOKEN=BOT_TOKEN
WorkingDirectory=/path/to/sagiri
# if you're using rustup, cargo should be in ~/.cargo/bin.
ExecStart=/path/to/cargo run --release
[Install]
WantedBy=multi-user.target # runlevel 3
```
```
$ systemctl daemon-reload
$ systemctl enable sagiri
$ systemctl start sagiri
$ systemctl status sagiri
```