mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
examples/dices.rs
=> examples/throw_dice.rs
This commit is contained in:
parent
5ecfd3d810
commit
2537f06464
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:
|
This bot replies with a dice throw to each received message:
|
||||||
|
|
||||||
([Full](examples/dices.rs))
|
([Full](examples/throw_dice.rs))
|
||||||
|
|
||||||
```rust,no_run
|
```rust,no_run
|
||||||
use teloxide::prelude::*;
|
use teloxide::prelude::*;
|
||||||
|
@ -92,7 +92,7 @@ use teloxide::prelude::*;
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
pretty_env_logger::init();
|
pretty_env_logger::init();
|
||||||
log::info!("Starting dices_bot...");
|
log::info!("Starting throw dice bot...");
|
||||||
|
|
||||||
let bot = Bot::from_env().auto_send();
|
let bot = Bot::from_env().auto_send();
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ async fn main() {
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<kbd>
|
<kbd>
|
||||||
<img src=../../raw/master/media/dices.gif />
|
<img src=../../raw/master/media/throw-dice.gif />
|
||||||
</kbd>
|
</kbd>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ use teloxide::prelude::*;
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
pretty_env_logger::init();
|
pretty_env_logger::init();
|
||||||
log::info!("Starting dices_bot...");
|
log::info!("Starting throw dice bot...");
|
||||||
|
|
||||||
let bot = Bot::from_env().auto_send();
|
let bot = Bot::from_env().auto_send();
|
||||||
|
|
Before Width: | Height: | Size: 44 MiB After Width: | Height: | Size: 44 MiB |
|
@ -4,14 +4,14 @@
|
||||||
//!
|
//!
|
||||||
//! For a high-level overview, see [our GitHub repository](https://github.com/teloxide/teloxide).
|
//! 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
|
//! ```no_run
|
||||||
//! use teloxide::prelude::*;
|
//! use teloxide::prelude::*;
|
||||||
//!
|
//!
|
||||||
//! # #[tokio::main]
|
//! # #[tokio::main]
|
||||||
//! # async fn main() {
|
//! # async fn main() {
|
||||||
//! pretty_env_logger::init();
|
//! pretty_env_logger::init();
|
||||||
//! log::info!("Starting dices_bot...");
|
//! log::info!("Starting throw dice bot...");
|
||||||
//!
|
//!
|
||||||
//! let bot = Bot::from_env().auto_send();
|
//! let bot = Bot::from_env().auto_send();
|
||||||
//!
|
//!
|
||||||
|
|
Loading…
Reference in a new issue