Skip to content

Wahyu213/OkaeriRustBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OkaeriRustBot

Table of Contents

https://github.com/Wahyu213/OkaeriRustBot/actions/workflows/rust.yml/badge.svg?branch=dev

About

OkaeriRustBot is a telegram bot written in rust using teloxide

Support chat

Support chat for this bot can be found here

Installation

Setting up your environment

  1. Download Rust
  2. Create a new bot using @Botfather
  3. Initialise the TELOXIDE_TOKEN environmental variable to your token:
$ export TELOXIDE_TOKEN=<Your token here>

Build manually

$ git clone https://github.com/Wahyu213/okaerirustbot
$ cd okaerirustbot
$ # edit src/plugins/sudo.rs and replace my telegram id with yours
$ cargo run --release

From crates.io

$ cargo install okaerirustbot
$ okaerirustbot

Commands available currently

  • /start - Redirect to /help
  • /help - List of all commands
  • /ping - Replies with “Pong!”
  • /say [text] - Bot replies with your text
  • /ctid - Get current chat’s ID, your ID, replied users ID (if any)
  • /ipi [ip] - Get ip information from ipinfo.io
  • /cs [country] - Get corona stats
  • /paste [reply to a message or text] - Paste text
  • /udi [term] - Get definition of a term

Sudo commands

  • p.upload [file] - Upload a file
  • p.sh [command] - Execute a shell command

About

My personal telegram bot in rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages