update stuff
This commit is contained in:
parent
d9743206d4
commit
bb3d97b106
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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)
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user