mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 15:15:37 +01:00
Fix game checker
This commit is contained in:
@@ -109,7 +109,7 @@ impl TwitchBot {
|
|||||||
eventsub::NotificationType::StreamOffline(_) => {},
|
eventsub::NotificationType::StreamOffline(_) => {},
|
||||||
eventsub::NotificationType::ChannelUpdate(data) => {
|
eventsub::NotificationType::ChannelUpdate(data) => {
|
||||||
if let Some(state) = current_state {
|
if let Some(state) = current_state {
|
||||||
if state.game != data.title {
|
if state.game.to_lowercase().trim() != data.title.to_lowercase().trim() {
|
||||||
notify_game_change(
|
notify_game_change(
|
||||||
data.title.clone(),
|
data.title.clone(),
|
||||||
state.game.clone(),
|
state.game.clone(),
|
||||||
|
|||||||
Reference in New Issue
Block a user