Compare commits

..

No commits in common. "06b893c7eef15a2c56d333f53cc113db30d1ac3b" and "041cf851b3f89b9ffa9fa0aa1eff34a8add738f4" have entirely different histories.

2 changed files with 1 additions and 13 deletions

View File

@ -1,6 +1,5 @@
package tech.nevets.modbot;
import ch.qos.logback.classic.Level;
import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.JDABuilder;
import net.dv8tion.jda.api.hooks.ListenerAdapter;
@ -22,7 +21,6 @@ public class CoreBot {
private static final Logger LOGGER = LoggerFactory.getLogger(CoreBot.class);
public static void main(String[] args) {
setLoggingLevel(Level.DEBUG);
CORE_CONFIG.addDefaults(getDefaults());
CORE_CONFIG.loadConfig();
modules = ModuleLoader.loadModules();
@ -44,11 +42,7 @@ public class CoreBot {
coreListener.getCommandRegistry().registerSlashCommands();
for (BotModule module : modules) {
if (module.loadCommandRegistry() == null) {
LOGGER.warn("Module has no commands to load");
} else {
module.loadCommandRegistry().registerSlashCommands();
}
module.loadCommandRegistry().registerSlashCommands();
module.onEnable(jda);
}
@ -67,9 +61,4 @@ public class CoreBot {
return defaults;
}
public static void setLoggingLevel(ch.qos.logback.classic.Level level) {
ch.qos.logback.classic.Logger root = (ch.qos.logback.classic.Logger) org.slf4j.LoggerFactory.getLogger(ch.qos.logback.classic.Logger.ROOT_LOGGER_NAME);
root.setLevel(level);
}
}

View File

@ -109,7 +109,6 @@ public class ModuleLoader {
}
}
LOGGER.debug("Loaded module: " + modules.toArray().toString());
return modules;
}
}