mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
Restructured the project structure back to the way it was, there's no reasonable way to split the modules
This commit is contained in:
16
src/NadekoBot/Modules/Gambling/AnimalRacing/RaceOptions.cs
Normal file
16
src/NadekoBot/Modules/Gambling/AnimalRacing/RaceOptions.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
#nullable disable
|
||||
using CommandLine;
|
||||
|
||||
namespace NadekoBot.Modules.Gambling.Common.AnimalRacing;
|
||||
|
||||
public class RaceOptions : INadekoCommandOptions
|
||||
{
|
||||
[Option('s', "start-time", Default = 20, Required = false)]
|
||||
public int StartTime { get; set; } = 20;
|
||||
|
||||
public void NormalizeOptions()
|
||||
{
|
||||
if (StartTime is < 10 or > 120)
|
||||
StartTime = 20;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user