perorustbot v0.1.2-dev
Description
My personal telegram bot in rust
Setting up your environment
- Download Rust.
- Create a new bot using @Botfather to get a token in the format
123456789:blablabla
. - Initialise the
TELOXIDE_TOKEN
environmental variable to your token:
# Unix-like
$ export TELOXIDE_TOKEN=<Your token here>
# Windows
$ set TELOXIDE_TOKEN=<Your token here>
- Make sure that your Rust compiler is up to date:
# If you're using stable
$ rustup update stable
$ rustup override set stable
# If you're using nightly
$ rustup update nightly
$ rustup override set nightly
Installation
- Build manually (recommended)
$ git clone https://github.com/PeroSar/perorustbot
$ cd perorustbot
$ # edit src/plugins/sudo.rs and replace my telegram id with yours
$ cargo run --release
- from crates.io
$ cargo install perorustbot
$ # make sure you have ~/.cargo/bin/ in your PATH
$ perorustbot
list of commands
- say
- start
- help (list of all commands)
- ping
- ipi (soon)
- follow (soon)
- cs (corona stats)
- ani (anime info)
- ctid (chat id, your id, replied users id)
- udi (urban dict)
- upload
- paste