mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-09 07:18:22 +00:00
Merge pull request #75 from dalbodeule/develop
SongType.NEXT to songList.isEmpty() true/false.
This commit is contained in:
commit
5ff78f4532
@ -125,19 +125,18 @@ fun Routing.wsSongListRoutes() {
|
|||||||
if(songList.isNotEmpty()) {
|
if(songList.isNotEmpty()) {
|
||||||
val song = songList[0]
|
val song = songList[0]
|
||||||
SongListService.deleteSong(user, song.uid, song.name)
|
SongListService.deleteSong(user, song.uid, song.name)
|
||||||
dispatcher.post(
|
|
||||||
SongEvent(
|
|
||||||
user.token!!,
|
|
||||||
SongType.NEXT,
|
|
||||||
null,
|
|
||||||
null,
|
|
||||||
null,
|
|
||||||
null,
|
|
||||||
null,
|
|
||||||
null
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dispatcher.post(SongEvent(
|
||||||
|
user.token!!,
|
||||||
|
SongType.NEXT,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null,
|
||||||
|
null
|
||||||
|
))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
is Frame.Ping -> send(Frame.Pong(frame.data))
|
is Frame.Ping -> send(Frame.Pong(frame.data))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user