Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.evy.bot;
- import javax.security.auth.login.LoginException;
- import net.dv8tion.jda.bot.JDABot;
- import net.dv8tion.jda.core.AccountType;
- import net.dv8tion.jda.core.JDA;
- import net.dv8tion.jda.core.JDABuilder;
- import net.dv8tion.jda.core.OnlineStatus;
- import net.dv8tion.jda.core.Permission;
- import net.dv8tion.jda.core.entities.Game;
- public class Main {
- public static final String BOT_TOKEN = "TOKEN";
- public static void main(String[] args) throws LoginException, InterruptedException {
- JDABuilder builder = new JDABuilder(AccountType.BOT).
- setToken(BOT_TOKEN).
- addEventListener(new MessageListener()).
- setStatus(OnlineStatus.DO_NOT_DISTURB).
- setGame(Game.watching("your mom stripping"));
- JDA jda = builder.buildBlocking();
- JDABot bot = jda.asBot();
- System.out.println(bot.getInviteUrl(Permission.getPermissions(Permission.ALL_PERMISSIONS)));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement