https://github.com/helightdev/kommando
https://github.com/helightdev/kommando
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/helightdev/kommando
- Owner: helightdev
- Created: 2022-07-31T23:50:31.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-02T06:29:56.000Z (over 3 years ago)
- Last Synced: 2025-03-16T02:18:11.749Z (about 1 year ago)
- Language: Kotlin
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# Kommando
Kommando is a KotlinJVM command framework mainly targeted towards
[deck](https://github.com/SrGaabriel/deck), a [Guilded](https://www.guilded.gg/)
bot framework (Guilded is basically [better discord](https://www.guilded.gg/blog/guilded-top-10-features-standalone)).
[[Installation]](https://helightdev.gitbook.io/kommando/installation) \
[[GitBook Documentation]](https://helightdev.gitbook.io/kommando/)
```kotlin
fun main() = runBlocking {
val client = DeckClient("TOKEN")
val manager = GuildedCommandManager(client)
manager.registerClasses(ExampleCommands::class.java)
client.login()
}
@Command("bot")
object ExampleCommands {
@Command("test")
@Scope(GuildedServerChatScope::class)
fun test(@Full message: String) = command {
"Received '$message'!"
}
}
```