use of com.github.vaerys.guildtoggles.modules.ModuleLogging in project DiscordSailv2 by Vaerys-Dawn.
the class LoggingSetupStage method stepText.
@Override
public void stepText(CommandObject command) {
// check if logging is enabled, otherwise skip:
if (!command.guild.config.moduleLogging) {
logger.trace("module " + new ModuleLogging().name() + " is not enabled. Skipping step");
SetupHandler.setSetupStage(command, SetupStage.getNextStage(command.guild.config.setupStage));
}
// do some message initialization
StringHandler output = new StringHandler();
output.append("We are moving on to setting up modules. The first one that needs to be configured is the Logging module");
output.append("\nThis module can be used to extend and enhance the basic Audit Log used by Discord.");
output.append("\n\nFirst part of this, I will need a couple of channels to use. One for general logging, and one for admin logging.");
output.append("\n*Admin Logging* is messages and events related to server configuration and user moderation.");
output.append("\n*General Logging* is all of the logging that doesn't fit under admin logging, such as new member joins, message edits and deletes, general command usage, etc.");
output.append("\n\nI am going to quickly scan your channels to see if I can find potential channels you might want to use...");
if (!checkForGeneralLog(command)) {
output.append("\nThere weren't any channels that I could see for general logging, checking if you have any for admin logging...");
if (!checkForAdminLog(command)) {
output.append("\nI didn't find any channels that could be used. You'll have to tell me which ones you want me to use");
} else {
// will ask for general channel thingers only...
}
}
RequestHandler.sendMessage(output.toString(), command.channel);
}
Aggregations