mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 15:15:37 +01:00
Update
This commit is contained in:
@@ -3,6 +3,8 @@ pub mod helix;
|
|||||||
pub mod auth;
|
pub mod auth;
|
||||||
pub mod chat;
|
pub mod chat;
|
||||||
|
|
||||||
|
use core::panicking::panic;
|
||||||
|
|
||||||
use chrono::{DateTime, Utc};
|
use chrono::{DateTime, Utc};
|
||||||
use futures::StreamExt;
|
use futures::StreamExt;
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
@@ -77,7 +79,7 @@ impl TwitchBot {
|
|||||||
config::CONFIG.twitch_client_secret.clone(),
|
config::CONFIG.twitch_client_secret.clone(),
|
||||||
token_storage,
|
token_storage,
|
||||||
token
|
token
|
||||||
).await.unwrap();
|
).await.or_else(panic("Failed to create Twitch client"));
|
||||||
|
|
||||||
let mut current_state: Option<State> = {
|
let mut current_state: Option<State> = {
|
||||||
let stream = client.get_stream(config::CONFIG.twitch_channel_id.clone()).await;
|
let stream = client.get_stream(config::CONFIG.twitch_channel_id.clone()).await;
|
||||||
|
|||||||
Reference in New Issue
Block a user