Skip to content

Commit

Permalink
feat: Zeus
Browse files Browse the repository at this point in the history
  • Loading branch information
BSpoones committed Mar 25, 2024
1 parent c94bf90 commit 1b9daaf
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/main/kotlin/org/bspoones/zeus/Zeus.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package org.bspoones.zeus

import net.dv8tion.jda.api.JDA
import org.bspoones.zeus.command.Command
import org.bspoones.zeus.command.CommandRegistry
import org.bspoones.zeus.component.ComponentRegistry
import kotlin.reflect.KClass

class Zeus(
private val api: JDA,
private val globalMessagePrefix: String = "!",
private val prefixGuildMap: MutableMap<Long, String> = mutableMapOf(),
private val guilds: List<Long> = listOf()
) {

init {
CommandRegistry.setup(
this.api,
this.globalMessagePrefix,
this.prefixGuildMap,
this.guilds
)
ComponentRegistry.setup(this.api)

setupListeners()
}

private fun setupListeners() {
this.api.addEventListener(Command())
}
}

0 comments on commit 1b9daaf

Please sign in to comment.