Add log level configuration (#1156)

* Add loglevel config

* Change order of fields

---------

Co-authored-by: John Grosh <john.a.grosh@gmail.com>
This commit is contained in:
Michaili K
2024-03-30 20:34:46 +01:00
committed by GitHub
parent 801b3769a1
commit b3ffbdba7d
3 changed files with 22 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ public class BotConfig
private final static String END_TOKEN = "/// END OF JMUSICBOT CONFIG ///";
private Path path = null;
private String token, prefix, altprefix, helpWord, playlistsFolder,
private String token, prefix, altprefix, helpWord, playlistsFolder, logLevel,
successEmoji, warningEmoji, errorEmoji, loadingEmoji, searchingEmoji;
private boolean stayInChannel, songInGame, npImages, updatealerts, useEval, dbots;
private long owner, maxSeconds, aloneTimeUntilStop;
@@ -86,6 +86,7 @@ public class BotConfig
songInGame = config.getBoolean("songinstatus");
npImages = config.getBoolean("npimages");
updatealerts = config.getBoolean("updatealerts");
logLevel = config.getString("loglevel");
useEval = config.getBoolean("eval");
maxSeconds = config.getLong("maxtime");
aloneTimeUntilStop = config.getLong("alonetimeuntilstop");
@@ -312,7 +313,12 @@ public class BotConfig
{
return updatealerts;
}
public String getLogLevel()
{
return logLevel;
}
public boolean useEval()
{
return useEval;