PixivDaily (Rust)
This repository contains the source code of the program running the Telegram channel @pixiv_daily.
Usage
First, you'll need to clone and build this program. For this step, you will need cargo
to be installed and the rustc
compiler available.
git clone https://github.com/k4yt3x/pixivdaily-rust
cd pixivdaily-rust
cargo build --release
After the binary is built, you can either run it directly:
./target/release/pixivdaily -c [CHAT_ID] -t [TOKEN]
Or, you can run it with systemd. The default systemd timer runs the program at every midnight. Remember to update the fields in /etc/pixivdaily.conf
.
sudo cp target/release/pixivdaily /usr/local/bin/pixivdaily
sudo cp conf/pixivdaily.service conf/pixivdaily.timer /etc/systemd/system
sudo cp conf/pixivdaily.conf /etc/pixivdaily.conf
sudo systemctl daemon-reload
sudo systemctl enable --now pixivdaily.timer