increased repeat value max to 1440, Usage description

This commit is contained in:
Master Kwoth 2016-05-09 20:36:49 +02:00
parent bf7a89af61
commit bb19551768

View File

@ -54,7 +54,7 @@ namespace NadekoBot.Modules.Administration.Commands
cgb.CreateCommand(Module.Prefix + "repeat") cgb.CreateCommand(Module.Prefix + "repeat")
.Description("Repeat a message every X minutes. If no parameters are specified, " + .Description("Repeat a message every X minutes. If no parameters are specified, " +
"repeat is disabled. Requires manage messages.") "repeat is disabled. Requires manage messages.\n**Usage**:`.repeat 5 Hello there`")
.Parameter("minutes", ParameterType.Optional) .Parameter("minutes", ParameterType.Optional)
.Parameter("msg", ParameterType.Unparsed) .Parameter("msg", ParameterType.Unparsed)
.AddCheck(SimpleCheckers.ManageMessages()) .AddCheck(SimpleCheckers.ManageMessages())
@ -73,7 +73,7 @@ namespace NadekoBot.Modules.Administration.Commands
return; return;
} }
int minutes; int minutes;
if (!int.TryParse(minutesStr, out minutes) || minutes < 1 || minutes > 720) if (!int.TryParse(minutesStr, out minutes) || minutes < 1 || minutes > 1440)
{ {
await e.Channel.SendMessage("Invalid value").ConfigureAwait(false); await e.Channel.SendMessage("Invalid value").ConfigureAwait(false);
return; return;