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

This commit is contained in:
Hirrolot 2022-04-27 00:56:51 +06:00
parent 5ecfd3d810
commit 2537f06464
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: This bot replies with a dice throw to each received message:
([Full](examples/dices.rs)) ([Full](examples/throw_dice.rs))
```rust,no_run ```rust,no_run
use teloxide::prelude::*; use teloxide::prelude::*;
@ -92,7 +92,7 @@ use teloxide::prelude::*;
#[tokio::main] #[tokio::main]
async fn main() { async fn main() {
pretty_env_logger::init(); pretty_env_logger::init();
log::info!("Starting dices_bot..."); log::info!("Starting throw dice bot...");
let bot = Bot::from_env().auto_send(); let bot = Bot::from_env().auto_send();
@ -106,7 +106,7 @@ async fn main() {
<div align="center"> <div align="center">
<kbd> <kbd>
<img src=../../raw/master/media/dices.gif /> <img src=../../raw/master/media/throw-dice.gif />
</kbd> </kbd>
</div> </div>

View file

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

View file

Before

Width:  |  Height:  |  Size: 44 MiB

After

Width:  |  Height:  |  Size: 44 MiB

View file

@ -4,14 +4,14 @@
//! //!
//! For a high-level overview, see [our GitHub repository](https://github.com/teloxide/teloxide). //! 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 //! ```no_run
//! use teloxide::prelude::*; //! use teloxide::prelude::*;
//! //!
//! # #[tokio::main] //! # #[tokio::main]
//! # async fn main() { //! # async fn main() {
//! pretty_env_logger::init(); //! pretty_env_logger::init();
//! log::info!("Starting dices_bot..."); //! log::info!("Starting throw dice bot...");
//! //!
//! let bot = Bot::from_env().auto_send(); //! let bot = Bot::from_env().auto_send();
//! //!