re-added --start-time (-s) to .race, updated libraries, version upped to 2.6.0, added 'options' field to help if command has extra options (only .race atm)
This commit is contained in:
@ -4,7 +4,13 @@ namespace NadekoBot.Core.Modules.Gambling.Common.AnimalRacing
|
||||
{
|
||||
public class RaceOptions
|
||||
{
|
||||
[Option("start-delay", Default = 20, Required = false)]
|
||||
public int StartDelay { get; set; }
|
||||
[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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user