feat: added MatchExtension, added MatchManager updater
chore: updated comments Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
9fa7f38228
commit
6b0bf40e0a
1 changed files with 7 additions and 3 deletions
|
@ -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<ReadyEvent> {
|
||||
AvailabilityManager.runThread()
|
||||
AvailabilityManager.runThread() // Update Availabilities
|
||||
MatchManager.update() // Update Matches
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue