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.exampleby putting there yourDATABASE_URLandTELOXIDE_TOKEN - Rename
.env.exampleto.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 testto test database manipulations. - Now, after all these preparations, just execute
cargo runfrom your terminal.