Moved debug channels to #bot-room
This commit is contained in:
parent
f7c6614c2a
commit
25e189e4d1
2 changed files with 30 additions and 29 deletions
|
@ -1,7 +1,8 @@
|
|||
package buttondevteam.discordplugin;
|
||||
package buttondevteam.discordplugin.listeners;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
|
||||
import buttondevteam.discordplugin.DiscordPlugin;
|
||||
import buttondevteam.lib.TBMCDebugMessageEvent;
|
||||
|
||||
public class DebugMessageListener implements Listener{
|
||||
|
@ -19,7 +20,7 @@ public class DebugMessageListener implements Listener{
|
|||
message = message.substring(0, 2000);
|
||||
sb.append(message).append("\n");
|
||||
sb.append("```");
|
||||
DiscordPlugin.sendMessageToChannel(DiscordPlugin.debugchannel, sb.toString());
|
||||
DiscordPlugin.sendMessageToChannel(DiscordPlugin.botchannel, sb.toString());
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
|
@ -24,7 +24,7 @@ public class ExceptionListener implements Listener {
|
|||
stackTrace = stackTrace.substring(0, 2000);
|
||||
sb.append(stackTrace).append("\n");
|
||||
sb.append("```");
|
||||
DiscordPlugin.sendMessageToChannel(DiscordPlugin.issuechannel, sb.toString());
|
||||
DiscordPlugin.sendMessageToChannel(DiscordPlugin.botchannel, sb.toString());
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue