Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.
/ deck Public archive

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

License

Notifications You must be signed in to change notification settings

SrGaabriel/deck

Repository files navigation

GitHub Workflow Status GitHub issues GitHub Repo stars Nexus badge

🎲 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")
}

About

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

Resources

License

Stars

Watchers

Forks

Languages