mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 15:15:37 +01:00
Update
This commit is contained in:
@@ -106,8 +106,8 @@ impl TwitchBot {
|
|||||||
).await.unwrap();
|
).await.unwrap();
|
||||||
println!("Connected to Twitch EventSub...");
|
println!("Connected to Twitch EventSub...");
|
||||||
|
|
||||||
let (_chat_client, mut chat_stream) = client.connect_chat(vec!["hafmc".to_string()]).await.unwrap();
|
// let (_chat_client, mut chat_stream) = client.connect_chat(vec!["hafmc".to_string()]).await.unwrap();
|
||||||
println!("Connected to Twitch Chat...");
|
// println!("Connected to Twitch Chat...");
|
||||||
|
|
||||||
client.validate_token().await.unwrap();
|
client.validate_token().await.unwrap();
|
||||||
|
|
||||||
@@ -164,16 +164,16 @@ impl TwitchBot {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(event) = chat_stream.next().await {
|
// if let Some(event) = chat_stream.next().await {
|
||||||
match event {
|
// match event {
|
||||||
Ok(v) => {
|
// Ok(v) => {
|
||||||
println!("{:?}", v);
|
// println!("{:?}", v);
|
||||||
},
|
// },
|
||||||
Err(err) => {
|
// Err(err) => {
|
||||||
eprintln!("{:?}", err);
|
// eprintln!("{:?}", err);
|
||||||
},
|
// },
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
client.validate_token().await.unwrap();
|
client.validate_token().await.unwrap();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user