Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. package TriviaBot;
  2.  
  3. import javax.security.auth.login.LoginException;
  4.  
  5.  
  6. import net.dv8tion.jda.core.JDABuilder;
  7. import net.dv8tion.jda.core.OnlineStatus;
  8. import net.dv8tion.jda.core.entities.Game;
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15. public class TriviaBotMain {
  16. public static String prefix = "~";
  17.  
  18. public static void main(String[] args) throws LoginException {
  19. JDABuilder builder = new JDABuilder();
  20. builder.setToken("NjAyMTg0NTI1MjIwNjc1NTk4.XTNKoQ.CU2zey8ibvWBf6jaMb-2ry4vi8A");
  21. builder.setStatus(OnlineStatus.ONLINE);
  22. builder.setGame(Game.watching("Who Wants To Be a Millionaire with Jeremy Clarkson"));
  23.  
  24. // Register listeners
  25. builder.addEventListener(new Commands());
  26. builder.build();
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement