Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. package me.chachy.chachybot;
  2.  
  3. import net.dv8tion.jda.core.AccountType;
  4. import net.dv8tion.jda.core.JDA;
  5. import net.dv8tion.jda.core.JDABuilder;
  6. import net.dv8tion.jda.core.entities.Game;
  7. import net.dv8tion.jda.core.exceptions.RateLimitedException;
  8.  
  9. import javax.security.auth.login.LoginException;
  10.  
  11. public class ChachyBot {
  12. private static JDA jda;
  13. public static void main(String... args);
  14. try {
  15. jda = (JDA) new JDABuilder(AccountType.BOT)
  16. .setToken("somethingthatyoudontneedtoknow")
  17. .setGame(Game.of(Game.GameType.LISTENING, "Chachy's Streams"'))
  18. .addEventListener(new EventHandler())
  19. .buildBlocking();
  20. } catch (LoginException e) {
  21. e.printStackTrace();
  22. catch (InterruptedException e) {
  23. e.printStackTrace();
  24. catch (RateLimitedException e) {
  25. e.printStackTrace();
  26.  
  27. }
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement