diff options
Diffstat (limited to 'azalea/examples')
| -rwxr-xr-x | azalea/examples/echo.rs | 2 | ||||
| -rw-r--r-- | azalea/examples/testbot.rs | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/azalea/examples/echo.rs b/azalea/examples/echo.rs index 46853bf4..292e12cd 100755 --- a/azalea/examples/echo.rs +++ b/azalea/examples/echo.rs @@ -4,8 +4,6 @@ use azalea::prelude::*; #[tokio::main] async fn main() { - env_logger::init(); - let account = Account::offline("bot"); // or let account = Account::microsoft("email").await; diff --git a/azalea/examples/testbot.rs b/azalea/examples/testbot.rs index af236dc4..053e29b3 100644 --- a/azalea/examples/testbot.rs +++ b/azalea/examples/testbot.rs @@ -19,13 +19,10 @@ struct SwarmState {} #[tokio::main] async fn main() -> anyhow::Result<()> { - env_logger::init(); - { use parking_lot::deadlock; use std::thread; use std::time::Duration; - // Create a background thread which checks for deadlocks every 10s thread::spawn(move || loop { thread::sleep(Duration::from_secs(10)); @@ -48,7 +45,7 @@ async fn main() -> anyhow::Result<()> { let mut accounts = Vec::new(); let mut states = Vec::new(); - for i in 0..1 { + for i in 0..5 { accounts.push(Account::offline(&format!("bot{i}"))); states.push(State::default()); } |
