mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
Compare commits
No commits in common. "a99f3b342a73722d23e0b7328d08f68083b94b9e" and "53757476a7ce3a20f5e6d2b87475b8305847ec60" have entirely different histories.
a99f3b342a
...
53757476a7
@ -88,7 +88,7 @@ class MessageHandler(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun manageAddCommand(msg: SessionChatMessage, user: User) {
|
private fun manageAddCommand(msg: SessionChatMessage, user: User) {
|
||||||
if (msg.profile.badges.none { it.imageUrl.contains("manager") }) {
|
if (msg.profile.badges.size == 0) {
|
||||||
handler.sendChat("매니저만 명령어를 추가할 수 있습니다.")
|
handler.sendChat("매니저만 명령어를 추가할 수 있습니다.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -109,7 +109,7 @@ class MessageHandler(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun manageUpdateCommand(msg: SessionChatMessage, user: User) {
|
private fun manageUpdateCommand(msg: SessionChatMessage, user: User) {
|
||||||
if (msg.profile.badges.none { it.imageUrl.contains("manager") }) {
|
if (msg.profile.badges.size == 0) {
|
||||||
handler.sendChat("매니저만 명령어를 추가할 수 있습니다.")
|
handler.sendChat("매니저만 명령어를 추가할 수 있습니다.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -131,7 +131,7 @@ class MessageHandler(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun manageRemoveCommand(msg: SessionChatMessage, user: User) {
|
private fun manageRemoveCommand(msg: SessionChatMessage, user: User) {
|
||||||
if (msg.profile.badges.none { it.imageUrl.contains("manager") }) {
|
if (msg.profile.badges.size == 0) {
|
||||||
handler.sendChat("매니저만 명령어를 삭제할 수 있습니다.")
|
handler.sendChat("매니저만 명령어를 삭제할 수 있습니다.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -148,7 +148,7 @@ class MessageHandler(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun timerCommand(msg: SessionChatMessage, user: User) {
|
private fun timerCommand(msg: SessionChatMessage, user: User) {
|
||||||
if (msg.profile.badges.none { it.imageUrl.contains("manager") }) {
|
if (msg.profile.badges.size == 0) {
|
||||||
handler.sendChat("매니저만 이 명령어를 사용할 수 있습니다.")
|
handler.sendChat("매니저만 이 명령어를 사용할 수 있습니다.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -227,7 +227,7 @@ class MessageHandler(
|
|||||||
|
|
||||||
val config = SongConfigService.getConfig(user)
|
val config = SongConfigService.getConfig(user)
|
||||||
|
|
||||||
if(config.streamerOnly && msg.profile.badges.none { it.imageUrl.contains("manager") }) {
|
if(config.streamerOnly && msg.profile.badges.size == 0) {
|
||||||
handler.sendChat("매니저만 이 명령어를 사용할 수 있습니다.")
|
handler.sendChat("매니저만 이 명령어를 사용할 수 있습니다.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -298,7 +298,7 @@ class MessageHandler(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun songStartCommand(msg: SessionChatMessage, user: User) {
|
private fun songStartCommand(msg: SessionChatMessage, user: User) {
|
||||||
if (msg.profile.badges.none { it.imageUrl.contains("manager") }) {
|
if (msg.profile?.badges?.size == 0) {
|
||||||
handler.sendChat("매니저만 이 명령어를 사용할 수 있습니다.")
|
handler.sendChat("매니저만 이 명령어를 사용할 수 있습니다.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user