Skip to content

Commit

Permalink
fix: make examples working
Browse files Browse the repository at this point in the history
  • Loading branch information
y5c4l3 committed Oct 22, 2023
1 parent 9e40f4c commit 9433ad5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion examples/echobot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ async fn main() -> Result<()> {
.password(std::env::var("BANCHO_PASSWORD").unwrap())
.build();

let client = Client::new(options).await?;
let mut client = Client::new(options);
client.run().await?;
client.auth().await?;
let operator = client.operator();
let mut subscriber = operator.subscribe();
loop {
Expand Down
5 changes: 3 additions & 2 deletions examples/tbot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ async fn main() -> Result<()> {
.password(std::env::var("BANCHO_PASSWORD").unwrap())
.build();

let client = Client::new(options).await?;
let operator = client.operator();
let mut client = Client::new(options);
client.run().await?;
client.auth().await?;
let operator = client.operator();

let title = "TBOT LOBBY".to_string();
let password = "tbot".to_string();
Expand Down

0 comments on commit 9433ad5

Please sign in to comment.