mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 06:25:10 +01:00
Rename simple_dialogue -> dialogue_bot
This commit is contained in:
parent
6de0c24ed2
commit
e9a62be453
5 changed files with 8 additions and 8 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -5,4 +5,4 @@ Cargo.lock
|
|||
.vscode/
|
||||
examples/target
|
||||
examples/ping_pong_bot/target
|
||||
examples/simple_dialogue/target
|
||||
examples/dialogue_bot/target
|
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "simple_dialogue"
|
||||
name = "dialogue_bot"
|
||||
version = "0.1.0"
|
||||
authors = ["Temirkhan Myrzamadi <hirrolot@gmail.com>"]
|
||||
edition = "2018"
|
|
@ -175,10 +175,10 @@ async fn handle_message(ctx: Ctx<Dialogue>) -> 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());
|
||||
|
|
@ -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)]
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue