deck

🎲 A powerful and simple-to-use guilded API wrapper made in Kotlin.

MIT License

Stars
14

🎲 deck [WIP]

This is the official bot API deck implementation, which is still in an early and experimental phase. We'll be adding and implementing features as Guilded releases new API updates.

Example

Below is an example of deck's powerful API, mainly inspired by kord.

suspend fun main() {
    val client = DeckClient("token")
    client.on<MessageCreateEvent> {
        if (!message.content.startsWith("+hello"))
            return@on
        val message: Message = channel.sendMessage("Hello, World!")
        message.sendReply("Hello, this is a reply!")
    }
    client.login()
}

For tutorials and documentation, check out our wiki.

Using

To use deck in your project, you just need to add the dependency com.github.SrGaabriel.deck:deck-core:$version and make sure you have mavenCentral registered as a repository.

You can replace deck-core with the name of the module you wish to import, and for the version you may use the latest one: GitHub release (latest by date)

dependencies {
    implementation("io.github.srgaabriel.deck:deck-core:$version")
}