Added bot-room channel

This commit is contained in:
alisolarflare 2016-11-23 11:34:42 -05:00
parent 4cac17c2df
commit 0ba9803644
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 genchannel;
public static IChannel chatchannel;
public static IChannel botroomchannel;
public static boolean Test = true;
@ -93,11 +94,13 @@ public class DiscordPlugin extends JavaPlugin implements IListener<ReadyEvent> {
annchannel = mainServer.getChannelByID("126795071927353344"); // announcements
genchannel = mainServer.getChannelByID("125813020357165056"); // general
chatchannel = mainServer.getChannelByID("249663564057411596"); // minecraft_chat
botroomchannel = devServer.getChannelByID("239519012529111040");//bot-room
dc.changeStatus(Status.game("on TBMC"));
} else {
botchannel = devServer.getChannelByID("239519012529111040"); // bottest
annchannel = devServer.getChannelByID("239519012529111040"); // bottest
genchannel = devServer.getChannelByID("239519012529111040"); // bottest
botchannel = devServer.getChannelByID("239519012529111040"); // bot-room
annchannel = devServer.getChannelByID("239519012529111040"); // bot-room
genchannel = devServer.getChannelByID("239519012529111040"); // bot-room
botroomchannel = devServer.getChannelByID("239519012529111040");//bot-room
chatchannel = devServer.getChannelByID("248185455508455424"); // minecraft_chat_test
dc.changeStatus(Status.game("testing"));
}

View file

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

View file

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