Skip to content

Commit

Permalink
if stream end, send message and can't use commands.(live image url fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
dalbodeule committed Jun 17, 2024
1 parent e9a2e6b commit a9aa518
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/kotlin/space/mori/chzzk_bot/chzzk/ChzzkHandler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class UserHandler(
}

override fun onChat(msg: ChatMessage) {
if(!_isActive) return
messageHandler.handle(msg, user)
}

Expand Down Expand Up @@ -158,9 +159,13 @@ class UserHandler(
.setEmbeds(embed.build())
.build()
).queue()

listener.sendChat("${user.username} 님의 방송이 감지되었습니다.")
}
} else {
logger.info("${user.username} is offline.")

listener.sendChat("${user.username} 님! 방송 수고하셨습니다.")
}
}
}

0 comments on commit a9aa518

Please sign in to comment.