Skip to content

nanqinlang-mogic/RustRssBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

RustRssBot

Build Status author license

A telegram rssbot based on RustRssBot via rust lang.

Origin Project: https://github.com/iovxw/rssbot

Usage

server

to make a rss bot, you should run these to make it server.

wget https://github.com/nanqinlang-mogic/RustRssBot/releases/download/1.1/rssbot
chmod +x rssbot
nohup ./rssbot datafile ${TELEGRAM-BOT-TOKEN} &

client

the following is each command and function of the bot:

command function parameter
list show subscribe list /list (${Channel-Username}) (display-url)
subscribe subscribe one /subscribe (${Channel-Username}) ${rss-url}
unsubscribe unsubscribe one /unsubscribe (${Channel-Username}) ${rss-url}

Compilation

if you want to compile it by yourself, you should download source and prepare a Rust & Cargo environment.

download source

git clone --branch=31.March https://github.com/nanqinlang-mogic/RustRssBot.git

Rust & Cargo environment

advise you to use rustup, the installation is in there.

curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly
source $HOME/.cargo/env

start compilation

install dependences:

apt-get install -y openssl libssl-dev pkg-config

then start compile it:

cd source
cargo build --release

then, the implement file is in ~/target/release/rssbot

About

telegram rssbot based on RustRssBot via rust lang.

Resources

Stars

Watchers

Forks

Packages

No packages published