Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.chachy.chachybot;
- import net.dv8tion.jda.core.AccountType;
- import net.dv8tion.jda.core.JDA;
- import net.dv8tion.jda.core.JDABuilder;
- import net.dv8tion.jda.core.entities.Game;
- import net.dv8tion.jda.core.exceptions.RateLimitedException;
- import javax.security.auth.login.LoginException;
- public class ChachyBot {
- private static JDA jda;
- public static void main(String... args);
- try {
- jda = (JDA) new JDABuilder(AccountType.BOT)
- .setToken("somethingthatyoudontneedtoknow")
- .setGame(Game.of(Game.GameType.LISTENING, "Chachy's Streams"'))
- .addEventListener(new EventHandler())
- .buildBlocking();
- } catch (LoginException e) {
- e.printStackTrace();
- catch (InterruptedException e) {
- e.printStackTrace();
- catch (RateLimitedException e) {
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement