This repository was archived by the owner on Sep 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Login
Gabriel edited this page Feb 7, 2023
·
3 revisions
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!

After you've received both these logs, your bot has logged in and is ready for events.
This is Deck's official documentation. For questions, you can either contact me in Guilded (https://www.guilded.gg/gabriel) or in Discord (Gaabriel#1911). If you don't have any of those, try opening an issue!
I'm not a native English speaker, so for any typos or grammar mistakes please do contact me as well.