update stuff

This commit is contained in:
Jannik Reimers 2024-10-29 23:11:05 +01:00
parent d9743206d4
commit bb3d97b106
Signed by: jansel
GPG key ID: 39C62D7D5233CFD0
4 changed files with 5 additions and 3 deletions

View file

@ -6,10 +6,13 @@ package dev.jansel.feixiao
import dev.jansel.feixiao.extensions.EventHooks
import dev.jansel.feixiao.extensions.MessageEvents
import dev.jansel.feixiao.utils.*
import dev.kordex.core.DATA_COLLECTION
import dev.kordex.core.ExtensibleBot
import dev.kordex.data.api.DataCollection
suspend fun main() {
val bot = ExtensibleBot(token) {
dataCollectionMode = DataCollection.None
extensions {
add(::MessageEvents)
add(::EventHooks)

View file

@ -29,7 +29,6 @@ class EventHooks : Extension() {
.withClientSecret(twitchcs)
.build()
twitchClient.clientHelper.enableStreamEventListener("janselosu")
// Register a listener for when the channel goes live
twitchClient.eventManager.onEvent(ChannelGoLiveEvent::class.java) {
runBlocking {
launch {