mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 06:25:10 +01:00
examples/dices.rs
=> examples/throw_dice.rs
Former-commit-id: 2537f06464
This commit is contained in:
parent
bbb3ac6e2d
commit
34ebbe6bef
4 changed files with 6 additions and 6 deletions
|
@ -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() {
|
|||
|
||||
<div align="center">
|
||||
<kbd>
|
||||
<img src=../../raw/master/media/dices.gif />
|
||||
<img src=../../raw/master/media/throw-dice.gif />
|
||||
</kbd>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
@ -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();
|
||||
//!
|
||||
|
|
Loading…
Reference in a new issue