Kiscord
Kiscord is Kotlin-pure multiplatform library for Discord services, including REST API, Gateway and Interactions.
Kiscord {
token(Token.bot("YOUR_BOT_TOKEN"))
events {
onMessageCreate { message ->
println("Got message: ${message.content}")
message.reply {
content = "Kotlin Power!"
}
}
}
}.connect(join = true)
Modules
-
core — Core library of Kiscord, provides APIs for REST services of Discord.
-
gateway — Gateway module for kiscord-core/README.md.
-
gateway-events — Event bus for kiscord-gateway/README.md.
-
gateway-interactions — Gateway-based interaction app bindings.
-
interactions — Building blocks for interaction-based app.
-
interactions-server — Ktor server plugin to run interaction-based app as Ktor server with webhooks.
-
scripting — APIs to run kiscord.kts Kotlin scripts.
-
scripting-runner — JVM runner for kiscord.kts Kotlin scripts.
All modules:
Core library of Kiscord, provides APIs for REST services of Discord.
Gateway module for kiscord-core.
kiscord-gateway plugin to subscribe for gateway events.
kiscord-gateway plugin to run interaction-based app as gateway bot.
Base module for kiscord-gateway-interactions and kiscord-interactions-server.
Ktor server plugin to run interaction-based app as Ktor server with webhooks.
APIs to run kiscord.kts Kotlin scripts.
JVM runner for kiscord.kts Kotlin scripts.