diff --git a/.gitignore b/.gitignore index dc7a5786..19037d54 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,4 @@ Cargo.lock .vscode/ examples/target examples/ping_pong_bot/target -examples/simple_dialogue/target \ No newline at end of file +examples/dialogue_bot/target \ No newline at end of file diff --git a/examples/simple_dialogue/Cargo.toml b/examples/dialogue_bot/Cargo.toml similarity index 93% rename from examples/simple_dialogue/Cargo.toml rename to examples/dialogue_bot/Cargo.toml index b8af369e..95b79db0 100644 --- a/examples/simple_dialogue/Cargo.toml +++ b/examples/dialogue_bot/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "simple_dialogue" +name = "dialogue_bot" version = "0.1.0" authors = ["Temirkhan Myrzamadi "] edition = "2018" diff --git a/examples/simple_dialogue/src/main.rs b/examples/dialogue_bot/src/main.rs similarity index 98% rename from examples/simple_dialogue/src/main.rs rename to examples/dialogue_bot/src/main.rs index c2ece8b9..5da1d516 100644 --- a/examples/simple_dialogue/src/main.rs +++ b/examples/dialogue_bot/src/main.rs @@ -175,10 +175,10 @@ async fn handle_message(ctx: Ctx) -> Res { #[tokio::main] async fn main() { - set_var("RUST_LOG", "simple_dialogue=trace"); + set_var("RUST_LOG", "dialogue_bot=trace"); set_var("RUST_LOG", "teloxide=error"); pretty_env_logger::init(); - log::info!("Starting the simple_dialogue bot!"); + log::info!("Starting the dialogue_bot bot!"); let bot = Bot::new(var("TELOXIDE_TOKEN").unwrap()); diff --git a/src/dispatching/dialogue/mod.rs b/src/dispatching/dialogue/mod.rs index ed48b2c1..7a7249a4 100644 --- a/src/dispatching/dialogue/mod.rs +++ b/src/dispatching/dialogue/mod.rs @@ -21,7 +21,7 @@ //! from the storage, otherwise ([`DialogueStage::Next`]) force the storage to //! update the session. //! -//! Please, see [examples/simple_dialogue] as an example. +//! Please, see [examples/dialogue_bot] as an example. //! //! [`Storage`]: crate::dispatching::dialogue::Storage //! [`DialogueDispatcher`]: crate::dispatching::dialogue::DialogueDispatcher @@ -30,7 +30,7 @@ //! [`DialogueStage::Next`]: crate::dispatching::dialogue::DialogueStage::Next //! [`CtxHandler`]: crate::dispatching::CtxHandler //! [`Dispatcher`]: crate::dispatching::Dispatcher -//! [examples/simple_dialogue]: https://github.com/teloxide/teloxide/tree/dev/examples/simple_dialogue +//! [examples/dialogue_bot]: https://github.com/teloxide/teloxide/tree/dev/examples/dialogue_bot #![allow(clippy::module_inception)] #![allow(clippy::type_complexity)] diff --git a/src/dispatching/mod.rs b/src/dispatching/mod.rs index 77befc3d..e3ad2dff 100644 --- a/src/dispatching/mod.rs +++ b/src/dispatching/mod.rs @@ -42,7 +42,7 @@ //! # } //! ``` //! -//! For a bit more complicated example, please see [examples/simple_dialogue]. +//! For a bit more complicated example, please see [examples/dialogue_bot]. //! //! [`Dispatcher`]: crate::dispatching::Dispatcher //! [11 update kinds]: crate::types::UpdateKind @@ -52,7 +52,7 @@ //! [`DialogueDispatcher`]: crate::dispatching::dialogue::DialogueDispatcher //! [`DispatcherHandlerResult`]: crate::dispatching::DispatcherHandlerResult //! [`Bot`]: crate::Bot -//! [examples/simple_dialogue]: https://github.com/teloxide/teloxide/tree/dev/examples/simple_dialogue +//! [examples/dialogue_bot]: https://github.com/teloxide/teloxide/tree/dev/examples/dialogue_bot mod ctx_handlers; pub mod dialogue;