update alerts to owner DMs

This commit is contained in:
John Grosh
2018-11-21 17:46:51 -05:00
parent aaec886b81
commit e1b07868fd
4 changed files with 50 additions and 12 deletions

View File

@@ -45,7 +45,7 @@ public class BotConfig
private Path path = null;
private String token, prefix, altprefix, helpWord, playlistsFolder,
successEmoji, warningEmoji, errorEmoji, loadingEmoji, searchingEmoji;
private boolean stayInChannel, songInGame, npImages, useEval, dbots;
private boolean stayInChannel, songInGame, npImages, updatealerts, useEval, dbots;
private long owner, maxSeconds;
private OnlineStatus status;
private Game game;
@@ -96,6 +96,7 @@ public class BotConfig
stayInChannel = config.getBoolean("stayinchannel");
songInGame = config.getBoolean("songinstatus");
npImages = config.getBoolean("npimages");
updatealerts = config.getBoolean("updatealerts");
useEval = config.getBoolean("eval");
maxSeconds = config.getLong("maxtime");
playlistsFolder = config.getString("playlistsfolder");
@@ -268,6 +269,11 @@ public class BotConfig
return dbots;
}
public boolean useUpdateAlerts()
{
return updatealerts;
}
public boolean useEval()
{
return useEval;