This is the Black Box telegram bot written in Rust. You can hold any items in it. Just try: @the_black_box_bot
These commands are supported:
/put <some item>
- Put item/take <some item>
- Take item/look
- Look into/shake
- Shake all items out/count
- Count items/help
- Display help info
- Fork this repository to your folder
- Talk to @BotFather and go through some dialog options until you've successfully created a bot. You should receive a token in the format of
123456789:blablabla
- Edit
.env.example
by putting there yourDATABASE_URL
andTELOXIDE_TOKEN
- Rename
.env.example
to.env
- Create database with command
sqlx database create
- Run this command
sqlx migrate run
. It will create tables in your database. - Run this command
cargo test
to test database manipulations. - Now, after all these preparations, just execute
cargo run
from your terminal.