examples/dices.rs => examples/throw_dice.rs

Former-commit-id: 2537f06464
This commit is contained in:
Hirrolot 2022-04-27 00:56:51 +06:00
parent bbb3ac6e2d
commit 34ebbe6bef
4 changed files with 6 additions and 6 deletions

View file

@ -84,7 +84,7 @@ tokio = { version = "1.8", features = ["rt-multi-thread", "macros"] }
This bot replies with a dice throw to each received message:
([Full](examples/dices.rs))
([Full](examples/throw_dice.rs))
```rust,no_run
use teloxide::prelude::*;
@ -92,7 +92,7 @@ use teloxide::prelude::*;
#[tokio::main]
async fn main() {
pretty_env_logger::init();
log::info!("Starting dices_bot...");
log::info!("Starting throw dice bot...");
let bot = Bot::from_env().auto_send();
@ -106,7 +106,7 @@ async fn main() {
<div align="center">
<kbd>
<img src=../../raw/master/media/dices.gif />
<img src=../../raw/master/media/throw-dice.gif />
</kbd>
</div>

View file

@ -5,7 +5,7 @@ use teloxide::prelude::*;
#[tokio::main]
async fn main() {
pretty_env_logger::init();
log::info!("Starting dices_bot...");
log::info!("Starting throw dice bot...");
let bot = Bot::from_env().auto_send();

View file

@ -4,14 +4,14 @@
//!
//! For a high-level overview, see [our GitHub repository](https://github.com/teloxide/teloxide).
//!
//! ([Full](https://github.com/teloxide/teloxide/blob/master/examples/dices.rs))
//! ([Full](https://github.com/teloxide/teloxide/blob/master/examples/throw_dice.rs))
//! ```no_run
//! use teloxide::prelude::*;
//!
//! # #[tokio::main]
//! # async fn main() {
//! pretty_env_logger::init();
//! log::info!("Starting dices_bot...");
//! log::info!("Starting throw dice bot...");
//!
//! let bot = Bot::from_env().auto_send();
//!