Add "alone time until stop" feature & config
This commit is contained in:
@@ -42,7 +42,7 @@ public class BotConfig
|
||||
private String token, prefix, altprefix, helpWord, playlistsFolder,
|
||||
successEmoji, warningEmoji, errorEmoji, loadingEmoji, searchingEmoji;
|
||||
private boolean stayInChannel, songInGame, npImages, updatealerts, useEval, dbots;
|
||||
private long owner, maxSeconds;
|
||||
private long owner, maxSeconds, aloneTimeUntilStop;
|
||||
private OnlineStatus status;
|
||||
private Activity game;
|
||||
private Config aliases;
|
||||
@@ -94,6 +94,7 @@ public class BotConfig
|
||||
updatealerts = config.getBoolean("updatealerts");
|
||||
useEval = config.getBoolean("eval");
|
||||
maxSeconds = config.getLong("maxtime");
|
||||
aloneTimeUntilStop = config.getLong("alonetimeuntilstop");
|
||||
playlistsFolder = config.getString("playlistsfolder");
|
||||
aliases = config.getConfig("aliases");
|
||||
dbots = owner == 113156185389092864L;
|
||||
@@ -298,6 +299,11 @@ public class BotConfig
|
||||
{
|
||||
return FormatUtil.formatTime(maxSeconds * 1000);
|
||||
}
|
||||
|
||||
public long getAloneTimeUntilStop()
|
||||
{
|
||||
return aloneTimeUntilStop;
|
||||
}
|
||||
|
||||
public boolean isTooLong(AudioTrack track)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user