1
0

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

@ -30,7 +30,7 @@ dependencies {
}
kordEx {
kordExVersion = "2.2.1-SNAPSHOT"
kordExVersion = "2.3.1-SNAPSHOT"
bot {
// See https://docs.kordex.dev/data-collection.html

View File

@ -4,7 +4,7 @@ kotlin = "2.0.20" # Note: Plugin versions must be updated in the settings.gradl
groovy = "3.0.22"
jansi = "2.4.1"
kx-ser = "1.7.3"
logback = "1.5.7"
logback = "1.5.12"
logback-groovy = "1.14.5"
logging = "7.0.0"
twitch4j = "1.22.0"

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 {