add: timely now has an option in gambling whether to use no protection, captcha, or button.

fix: grpc api fix for dashy
This commit is contained in:
Kwoth
2024-11-04 14:35:59 +00:00
parent b5d1469df1
commit 96c9b47da2
5 changed files with 88 additions and 15 deletions

View File

@@ -11,7 +11,7 @@ namespace NadekoBot.Modules.Gambling.Common;
public sealed partial class GamblingConfig : ICloneable<GamblingConfig>
{
[Comment("""DO NOT CHANGE""")]
public int Version { get; set; } = 10;
public int Version { get; set; } = 11;
[Comment("""Currency settings""")]
public CurrencyConfig Currency { get; set; }
@@ -119,9 +119,17 @@ public partial class TimelyConfig
public int Cooldown { get; set; } = 24;
[Comment("""
Whether the users are required to type a password when they do timely.
How will timely be protected?
None, Button (users have to click the button) or Captcha (users have to type the captcha from an image)
""")]
public bool HasButton { get; set; } = true;
public TimelyProt ProtType { get; set; } = TimelyProt.Button;
}
public enum TimelyProt
{
None,
Button,
Captcha
}
[Cloneable]