mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +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/
|
.vscode/
|
||||||
examples/target
|
examples/target
|
||||||
examples/ping_pong_bot/target
|
examples/ping_pong_bot/target
|
||||||
examples/simple_dialogue/target
|
examples/dialogue_bot/target
|
|
@ -1,5 +1,5 @@
|
||||||
[package]
|
[package]
|
||||||
name = "simple_dialogue"
|
name = "dialogue_bot"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Temirkhan Myrzamadi <hirrolot@gmail.com>"]
|
authors = ["Temirkhan Myrzamadi <hirrolot@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
|
@ -175,10 +175,10 @@ async fn handle_message(ctx: Ctx<Dialogue>) -> Res {
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
set_var("RUST_LOG", "simple_dialogue=trace");
|
set_var("RUST_LOG", "dialogue_bot=trace");
|
||||||
set_var("RUST_LOG", "teloxide=error");
|
set_var("RUST_LOG", "teloxide=error");
|
||||||
pretty_env_logger::init();
|
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());
|
let bot = Bot::new(var("TELOXIDE_TOKEN").unwrap());
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
//! from the storage, otherwise ([`DialogueStage::Next`]) force the storage to
|
//! from the storage, otherwise ([`DialogueStage::Next`]) force the storage to
|
||||||
//! update the session.
|
//! update the session.
|
||||||
//!
|
//!
|
||||||
//! Please, see [examples/simple_dialogue] as an example.
|
//! Please, see [examples/dialogue_bot] as an example.
|
||||||
//!
|
//!
|
||||||
//! [`Storage`]: crate::dispatching::dialogue::Storage
|
//! [`Storage`]: crate::dispatching::dialogue::Storage
|
||||||
//! [`DialogueDispatcher`]: crate::dispatching::dialogue::DialogueDispatcher
|
//! [`DialogueDispatcher`]: crate::dispatching::dialogue::DialogueDispatcher
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
//! [`DialogueStage::Next`]: crate::dispatching::dialogue::DialogueStage::Next
|
//! [`DialogueStage::Next`]: crate::dispatching::dialogue::DialogueStage::Next
|
||||||
//! [`CtxHandler`]: crate::dispatching::CtxHandler
|
//! [`CtxHandler`]: crate::dispatching::CtxHandler
|
||||||
//! [`Dispatcher`]: crate::dispatching::Dispatcher
|
//! [`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::module_inception)]
|
||||||
#![allow(clippy::type_complexity)]
|
#![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
|
//! [`Dispatcher`]: crate::dispatching::Dispatcher
|
||||||
//! [11 update kinds]: crate::types::UpdateKind
|
//! [11 update kinds]: crate::types::UpdateKind
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
//! [`DialogueDispatcher`]: crate::dispatching::dialogue::DialogueDispatcher
|
//! [`DialogueDispatcher`]: crate::dispatching::dialogue::DialogueDispatcher
|
||||||
//! [`DispatcherHandlerResult`]: crate::dispatching::DispatcherHandlerResult
|
//! [`DispatcherHandlerResult`]: crate::dispatching::DispatcherHandlerResult
|
||||||
//! [`Bot`]: crate::Bot
|
//! [`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;
|
mod ctx_handlers;
|
||||||
pub mod dialogue;
|
pub mod dialogue;
|
||||||
|
|
Loading…
Reference in a new issue