add more logging lmao
This commit is contained in:
parent
2059f6c6c6
commit
69a08ce6d4
1 changed files with 3 additions and 0 deletions
|
@ -31,6 +31,7 @@ class EventHooks : Extension() {
|
|||
.build()
|
||||
twitchClient.clientHelper.enableStreamEventListener("janselosu")
|
||||
twitchClient.eventManager.onEvent(ChannelGoLiveEvent::class.java) {
|
||||
println("${it.channel.name} went live!")
|
||||
runBlocking {
|
||||
launch {
|
||||
val twitchpingschannel =
|
||||
|
@ -41,6 +42,7 @@ class EventHooks : Extension() {
|
|||
}
|
||||
}
|
||||
twitchClient.eventManager.onEvent(ChannelGoOfflineEvent::class.java) {
|
||||
println("${it.channel.name} went offline.")
|
||||
runBlocking {
|
||||
launch {
|
||||
kord.editPresence { playing("osu!") }
|
||||
|
@ -48,6 +50,7 @@ class EventHooks : Extension() {
|
|||
}
|
||||
}
|
||||
twitchClient.eventManager.onEvent(ChannelChangeTitleEvent::class.java) {
|
||||
println("Title changed to ${it.title}")
|
||||
runBlocking {
|
||||
launch {
|
||||
kord.editPresence { streaming(it.title, "https://twitch.tv/${it.channel.name}") }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue