Skip to content

This is a Telegram bot written in Rust that allows users to roll a dice and keep track of their rolls. The bot is built using the Teloxide library.

Notifications You must be signed in to change notification settings

EbadiDev/teloxide-Dice-Rolling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alt text

Usage

  • Users can start the bot with the /start command and receive a welcome message.
  • Users can roll a dice by sending the /throw command.
  • After rolling the dice, the bot will display the value of the roll and prompt the user to either roll again or type something else to stop.
  • If the user types anything other than /throw, the bot will prompt them to type /throw to continue rolling.

Installation

  1. Clone the repository:

  2. Install the required dependencies by running: cargo build

  3. Create a config.toml file in the project root directory with your Telegram bot token:

[bot]
telegram_bot_token = "your_bot_token_here"

Replace "your_bot_token_here" with the actual token provided by the BotFather when you created your Telegram bot.

To run the bot, execute the following command: cargo run

About

This is a Telegram bot written in Rust that allows users to roll a dice and keep track of their rolls. The bot is built using the Teloxide library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages