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

Latest commit

 

History

History
41 lines (30 loc) · 1.74 KB

README.md

File metadata and controls

41 lines (30 loc) · 1.74 KB

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