From 2537f0646496df9818a75806c854a12536cdcbd2 Mon Sep 17 00:00:00 2001 From: Hirrolot Date: Wed, 27 Apr 2022 00:56:51 +0600 Subject: [PATCH] `examples/dices.rs` => `examples/throw_dice.rs` --- README.md | 6 +++--- examples/{dices.rs => throw_dice.rs} | 2 +- media/{dices.gif => throw-dice.gif} | Bin src/lib.rs | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) rename examples/{dices.rs => throw_dice.rs} (88%) rename media/{dices.gif => throw-dice.gif} (100%) diff --git a/README.md b/README.md index a309cd8f..6096922c 100644 --- a/README.md +++ b/README.md @@ -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() {
- +
diff --git a/examples/dices.rs b/examples/throw_dice.rs similarity index 88% rename from examples/dices.rs rename to examples/throw_dice.rs index a91a7ea4..758778b1 100644 --- a/examples/dices.rs +++ b/examples/throw_dice.rs @@ -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(); diff --git a/media/dices.gif b/media/throw-dice.gif similarity index 100% rename from media/dices.gif rename to media/throw-dice.gif diff --git a/src/lib.rs b/src/lib.rs index f5faf538..4c2ba9d8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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(); //!