From 92a0ec27a6bd1fc0387428707ab64f41a7871392 Mon Sep 17 00:00:00 2001 From: Jannik Reimers Date: Wed, 6 Nov 2024 20:30:42 +0100 Subject: [PATCH] damn. --- src/main/kotlin/dev/jansel/feixiao/extensions/EventHooks.kt | 2 +- .../kotlin/dev/jansel/feixiao/extensions/StreamerCommand.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/dev/jansel/feixiao/extensions/EventHooks.kt b/src/main/kotlin/dev/jansel/feixiao/extensions/EventHooks.kt index 56c3948..656a495 100644 --- a/src/main/kotlin/dev/jansel/feixiao/extensions/EventHooks.kt +++ b/src/main/kotlin/dev/jansel/feixiao/extensions/EventHooks.kt @@ -13,7 +13,7 @@ class EventHooks : Extension() { event { action { println("Bot is ready!") - kord.editPresence { listening("to the database") } + kord.editPresence { listening("the database") } // check every entry in the database and enable the stream event listener StreamerCollection().collection.find().toList().forEach { twitchClient!!.clientHelper.enableStreamEventListener(it.name) diff --git a/src/main/kotlin/dev/jansel/feixiao/extensions/StreamerCommand.kt b/src/main/kotlin/dev/jansel/feixiao/extensions/StreamerCommand.kt index c8bdbf4..0fbe952 100644 --- a/src/main/kotlin/dev/jansel/feixiao/extensions/StreamerCommand.kt +++ b/src/main/kotlin/dev/jansel/feixiao/extensions/StreamerCommand.kt @@ -29,7 +29,7 @@ class StreamerCommand : Extension() { } action { val streamer = arguments.streamer - StreamerCollection().updateData(guild!!.id, channel.id, streamer, arguments.role) + StreamerCollection().updateData(guild!!.id, arguments.channel, streamer, arguments.role) twitchClient!!.clientHelper.enableStreamEventListener(streamer) respond { content = "Added streamer $streamer"