2017-11-28 02:50:24 +07:00
|
|
|
|
using CommandLine;
|
2017-11-29 18:14:19 +07:00
|
|
|
|
using NadekoBot.Core.Common;
|
2017-11-28 02:50:24 +07:00
|
|
|
|
|
|
|
|
|
namespace NadekoBot.Core.Modules.Gambling.Common.AnimalRacing
|
|
|
|
|
{
|
2017-11-29 18:14:19 +07:00
|
|
|
|
public class RaceOptions : INadekoCommandOptions
|
2017-11-28 02:50:24 +07:00
|
|
|
|
{
|
2017-11-29 13:53:16 +07:00
|
|
|
|
[Option('s', "start-time", Default = 20, Required = false)]
|
|
|
|
|
public int StartTime { get; set; } = 20;
|
|
|
|
|
|
|
|
|
|
public void NormalizeOptions()
|
|
|
|
|
{
|
|
|
|
|
if (this.StartTime < 10 || this.StartTime > 120)
|
|
|
|
|
this.StartTime = 20;
|
|
|
|
|
}
|
2017-11-28 02:50:24 +07:00
|
|
|
|
}
|
|
|
|
|
}
|