update stuff
This commit is contained in:
parent
d9743206d4
commit
bb3d97b106
4 changed files with 5 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue