Revert "Revert "Added bot-room channel""

This reverts commit 416f110ca6.
This commit is contained in:
alisolarflare 2016-11-23 11:44:44 -05:00
parent 416f110ca6
commit b5c0d481dc
3 changed files with 8 additions and 5 deletions

View file

@ -75,6 +75,7 @@ public class DiscordPlugin extends JavaPlugin implements IListener<ReadyEvent> {
public static IChannel annchannel; public static IChannel annchannel;
public static IChannel genchannel; public static IChannel genchannel;
public static IChannel chatchannel; public static IChannel chatchannel;
public static IChannel botroomchannel;
public static boolean Test = true; public static boolean Test = true;
@ -93,11 +94,13 @@ public class DiscordPlugin extends JavaPlugin implements IListener<ReadyEvent> {
annchannel = mainServer.getChannelByID("126795071927353344"); // announcements annchannel = mainServer.getChannelByID("126795071927353344"); // announcements
genchannel = mainServer.getChannelByID("125813020357165056"); // general genchannel = mainServer.getChannelByID("125813020357165056"); // general
chatchannel = mainServer.getChannelByID("249663564057411596"); // minecraft_chat chatchannel = mainServer.getChannelByID("249663564057411596"); // minecraft_chat
botroomchannel = devServer.getChannelByID("239519012529111040");//bot-room
dc.changeStatus(Status.game("on TBMC")); dc.changeStatus(Status.game("on TBMC"));
} else { } else {
botchannel = devServer.getChannelByID("239519012529111040"); // bottest botchannel = devServer.getChannelByID("239519012529111040"); // bot-room
annchannel = devServer.getChannelByID("239519012529111040"); // bottest annchannel = devServer.getChannelByID("239519012529111040"); // bot-room
genchannel = devServer.getChannelByID("239519012529111040"); // bottest genchannel = devServer.getChannelByID("239519012529111040"); // bot-room
botroomchannel = devServer.getChannelByID("239519012529111040");//bot-room
chatchannel = devServer.getChannelByID("248185455508455424"); // minecraft_chat_test chatchannel = devServer.getChannelByID("248185455508455424"); // minecraft_chat_test
dc.changeStatus(Status.game("testing")); dc.changeStatus(Status.game("testing"));
} }

View file

@ -20,7 +20,7 @@ public class DebugMessageListener implements Listener{
message = message.substring(0, 2000); message = message.substring(0, 2000);
sb.append(message).append("\n"); sb.append(message).append("\n");
sb.append("```"); sb.append("```");
DiscordPlugin.sendMessageToChannel(DiscordPlugin.botchannel, sb.toString()); DiscordPlugin.sendMessageToChannel(DiscordPlugin.botroomchannel, sb.toString());
} catch (Exception ex) { } catch (Exception ex) {
ex.printStackTrace(); ex.printStackTrace();
} }

View file

@ -24,7 +24,7 @@ public class ExceptionListener implements Listener {
stackTrace = stackTrace.substring(0, 2000); stackTrace = stackTrace.substring(0, 2000);
sb.append(stackTrace).append("\n"); sb.append(stackTrace).append("\n");
sb.append("```"); sb.append("```");
DiscordPlugin.sendMessageToChannel(DiscordPlugin.botchannel, sb.toString()); DiscordPlugin.sendMessageToChannel(DiscordPlugin.botroomchannel, sb.toString());
} catch (Exception ex) { } catch (Exception ex) {
ex.printStackTrace(); ex.printStackTrace();
} }