KDP is an asynchronous framework for creating Discord bots. Written 100% in Kotlin.
KDP 2.x is still in development stage, thus we can't guarantee API stability.
See kdp-demo for more examples.
import dev.cubxity.kdp.engine.on
import dev.cubxity.kdp.engine.jda.JDA
import dev.cubxity.kdp.event.message.MessageCreateEvent
import dev.cubxity.kdp.kdp
suspend fun main() {
kdp(JDA, "Your token here") {
engine.on<MessageCreateEvent> {
println("${message.author.username}: ${message.content}")
}
}.login()
}