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