Last active
May 20, 2022 08:35
-
-
Save itsmefox/4efe05b9fae1b9b46a3a8d2f0822bb15 to your computer and use it in GitHub Desktop.
Creating a Discord Bot with Kotlin - BasicBotApplication - 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BasicBotApplication { | |
companion object { | |
@JvmStatic | |
fun main(args: Array<String>) { | |
val token = "" | |
//Create a new JDA instance | |
val jda = JDABuilder.createDefault(token).build() | |
//Set the activity to "I'm Ready" | |
jda.presence.activity = Activity.playing("I'm Ready") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment