From 6b0bf40e0a6427dc79e29b3f444e7c535e49b504 Mon Sep 17 00:00:00 2001 From: limited_dev Date: Wed, 12 Jul 2023 13:28:24 +0200 Subject: [PATCH] feat: added MatchExtension, added MatchManager updater chore: updated comments Signed-off-by: limited_dev --- src/main/kotlin/net/moonleay/lilJudd/Bot.kt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/net/moonleay/lilJudd/Bot.kt b/src/main/kotlin/net/moonleay/lilJudd/Bot.kt index c12a304..be764de 100644 --- a/src/main/kotlin/net/moonleay/lilJudd/Bot.kt +++ b/src/main/kotlin/net/moonleay/lilJudd/Bot.kt @@ -36,9 +36,11 @@ import net.moonleay.lilJudd.buttons.component.EditButtonManager import net.moonleay.lilJudd.data.CredentialManager import net.moonleay.lilJudd.data.DB import net.moonleay.lilJudd.extensions.FeatureManageExtension +import net.moonleay.lilJudd.extensions.MatchExtension import net.moonleay.lilJudd.extensions.SendPlannerExtension import net.moonleay.lilJudd.extensions.VersionExtension import net.moonleay.lilJudd.features.AvailabilityManager +import net.moonleay.lilJudd.features.MatchManager import net.moonleay.lilJudd.features.TimeManager import net.moonleay.lilJudd.util.Logger import net.moonleay.lilJudd.util.MessageUtil @@ -90,7 +92,7 @@ object Bot { ) // Thanks silenium-dev <3 - // Add bot token to kord + // Create the bot object bot = ExtensibleBot(CredentialManager.token) { applicationCommands { enabled = true @@ -100,6 +102,7 @@ object Bot { add(::VersionExtension) add(::FeatureManageExtension) add(::SendPlannerExtension) + add(::MatchExtension) //add(::UpdateRolesExtension) // This command is only for debugging purposes //add(::TestExtension) // See comment in TestExtension.kt } @@ -118,6 +121,7 @@ object Bot { sharding { recommended -> Shards(recommended) } */ + // Same goes for a Database table rewrite } // Register button presses @@ -152,9 +156,9 @@ object Bot { } } - // Update roles bot.kordRef.on { - AvailabilityManager.runThread() + AvailabilityManager.runThread() // Update Availabilities + MatchManager.update() // Update Matches }