Created
January 22, 2017 18:32
-
-
Save Darkhax/c303b124c1ad11c4c8f5ef48730f87ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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