perorustbot

Crates.ioperorustbot
lib.rsperorustbot
version0.1.2
sourcesrc
created_at2021-06-12 13:55:18.008125
updated_at2021-06-16 11:35:59.285597
descriptionMy personal telegram bot in rust
homepagehttps://github.com/PeroSar/perorustbot
repository
max_upload_size
id409343
size52,547
Pero Sar (PeroSar)

documentation

README

perorustbot v0.1.2-dev

Description

My personal telegram bot in rust

Setting up your environment

  1. Download Rust.
  2. Create a new bot using @Botfather to get a token in the format 123456789:blablabla.
  3. Initialise the TELOXIDE_TOKEN environmental variable to your token:
# Unix-like
$ export TELOXIDE_TOKEN=<Your token here>

# Windows
$ set TELOXIDE_TOKEN=<Your token here>
  1. 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

  1. 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
  1. 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

This bot can be found at https://t.me/Pero_Rust_Bot

Commit count: 0

cargo fmt