Allow configurable default skip ratio (#1140)

* Allow configurable default skip ratio

Revert "Allow configurable default skip ratio"

This reverts commit 10e38b4132ee2b28fb583603d69e6228da211ecd.

* FIX: Use -1 to denote a guild has not set a skip ratio, and opted to use the bot default.
This commit is contained in:
Kevin S
2024-03-01 16:42:39 -08:00
committed by GitHub
parent 23c2dfa78e
commit 8a1066cc87
4 changed files with 24 additions and 6 deletions

View File

@@ -43,6 +43,7 @@ public class BotConfig
successEmoji, warningEmoji, errorEmoji, loadingEmoji, searchingEmoji;
private boolean stayInChannel, songInGame, npImages, updatealerts, useEval, dbots;
private long owner, maxSeconds, aloneTimeUntilStop;
private double skipratio;
private OnlineStatus status;
private Activity game;
private Config aliases, transforms;
@@ -91,6 +92,7 @@ public class BotConfig
playlistsFolder = config.getString("playlistsfolder");
aliases = config.getConfig("aliases");
transforms = config.getConfig("transforms");
skipratio = config.getDouble("skipratio");
dbots = owner == 113156185389092864L;
// we may need to write a new config file
@@ -231,6 +233,11 @@ public class BotConfig
return token;
}
public double getSkipRatio()
{
return skipratio;
}
public long getOwnerId()
{
return owner;