Skip to content

Instantly share code, notes, and snippets.

@itsmefox
Created June 22, 2022 12:30
Show Gist options
  • Save itsmefox/4f27150863d6e52c209299815590adf3 to your computer and use it in GitHub Desktop.
Save itsmefox/4f27150863d6e52c209299815590adf3 to your computer and use it in GitHub Desktop.
Creating a Discord Bot with Kotlin - Application - 1
public class Application {
public static void main(String[] args) throws LoginException {
String token = "";
//Create a new JDA instance
JDA jda = JDABuilder.createDefault(token).build();
//Set the activity to "I'm Ready"
jda.getPresence().setActivity(Activity.playing("I'm Ready"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment