@@ -0,0 +1,1177 @@
+import sx.blah.discord.api.events.EventSubscriber;%0Aimport sx.blah.discord.handle.impl.events.guild.channel.message.MessageReceivedEvent;%0A%0Apublic class CommandHandler %7B%0A%09// Deals with events%0A%09%0A%09// You know what? Ignore this crap. I don't care right now.%0A%09// Go to https://github.com/decyg/d4jexamplebot/blob/master/src/main/java/com/github/decyg/CommandHandler.java%0A%09// When you do.%0A%09/*%0A%09// Maps command strings to the command implementations%0A%09// So, a command becomes functional%0A%09private static Map%3CString, Command%3E commandMap = new HashMap%3C%3E();%0A%09%0A%09// Hum. We now deviate from the tutorial, because I do my own thing%0A%09// Also, I don't want to add more dependencies. Eh.%0A%09%0A%09// Populate commandMap with functionality%0A%09// From tutorial:%0A%09// %22Might be better practise to do this from an instantiated objects constructor%22%0A%09static %7B%0A%09%09// TODO: STUFF HERE%0A%09%7D%0A%09*/%0A%09%0A%09@EventSubscriber%0A%09public void onMessageRecieved(MessageReceivedEvent event) %7B%0A%09%09%0A%09%09// Checks if a message begins with the bot command prefix%0A%09%09if (event.getMessage().getContent().startsWith(BotUtils.BOT_PREFIX)) %7B%0A%09%09%09// Do... Stuff.%0A%09%09%09BotUtils.sendMessage(event.getChannel(), %22Hey! I'm a bot, and I live!%22);%0A%09%09%7D%0A%09%7D%0A%7D%0A

Create CommandHandler.java