Skip to content

Instantly share code, notes, and snippets.

@Darkhax
Created January 22, 2017 18:32
Show Gist options
  • Save Darkhax/c303b124c1ad11c4c8f5ef48730f87ec to your computer and use it in GitHub Desktop.
Save Darkhax/c303b124c1ad11c4c8f5ef48730f87ec to your computer and use it in GitHub Desktop.
package com.mcmoddev.bot;
import java.util.logging.Logger;
import sx.blah.discord.api.ClientBuilder;
import sx.blah.discord.api.IDiscordClient;
import sx.blah.discord.handle.obj.IChannel;
import sx.blah.discord.handle.obj.IGuild;
import sx.blah.discord.util.DiscordException;
import sx.blah.discord.util.RateLimitException;
public class MMDBot {
public static final Logger LOG = Logger.getLogger("MMDBot");
public static final String COMMAND_KEY = "!mmd";
public static IDiscordClient instance;
public static IGuild mmdGuild;
public static IChannel botZone;
public static IChannel events;
public static void main (String... args) throws RateLimitException {
try {
instance = new ClientBuilder().withToken(args[0]).login();
}
catch (final DiscordException e) {
e.printStackTrace();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment