/kdp

Modular and customizable Discord command processing library based on JDA written in Kotlin.

Primary LanguageKotlinGNU Lesser General Public License v3.0LGPL-3.0

KDP Banner

Discord License Issues Workflow Status

KDP is an asynchronous framework for creating Discord bots. Written 100% in Kotlin.

Disclaimer

KDP 2.x is still in development stage, thus we can't guarantee API stability.

Supported engines

  • JDA Work-in-progress
  • Kord Coming soon

Example

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()
}

Credits

KDP is inspired by Kord and Ktor.