Skip to content

This is the Black Box Telegram bot. You can hold any items in it.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

wa7sa34cx/the-black-box-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Black Box bot

This is the Black Box telegram bot written in Rust. You can hold any items in it. Just try: @the_black_box_bot

Usage

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

Installation

Prerequisites

Deployment

  1. Fork this repository to your folder
  2. 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
  3. Edit .env.example by putting there your DATABASE_URL and TELOXIDE_TOKEN
  4. Rename .env.example to .env
  5. Create database with command sqlx database create
  6. Run this command sqlx migrate run. It will create tables in your database.
  7. Run this command cargo test to test database manipulations.
  8. Now, after all these preparations, just execute cargo run from your terminal.

About

This is the Black Box Telegram bot. You can hold any items in it.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks