Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.
Gabriel edited this page Feb 7, 2023 · 3 revisions

Set up

After you've implemented the core, to start using deck you to create a Kotlin file with a suspend function called main. When your program starts, the main function will be the first one to be executed.

There you will create and set up a DeckClient:

suspend fun main() {
    val client = DeckClient("INSERT_YOUR_TOKEN_HERE")
    client.login()
}

Done! After the login function call, your bot is now listening to gateway events!

image

After you've received both these logs, your bot has logged in and is ready for events.

Clone this wiki locally