From bb19551768f90aaecd8e34c499eb5f263b80ce36 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Mon, 9 May 2016 20:36:49 +0200 Subject: [PATCH] increased repeat value max to 1440, Usage description --- NadekoBot/Modules/Administration/Commands/MessageRepeater.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NadekoBot/Modules/Administration/Commands/MessageRepeater.cs b/NadekoBot/Modules/Administration/Commands/MessageRepeater.cs index ca41ad41..69c5f231 100644 --- a/NadekoBot/Modules/Administration/Commands/MessageRepeater.cs +++ b/NadekoBot/Modules/Administration/Commands/MessageRepeater.cs @@ -54,7 +54,7 @@ namespace NadekoBot.Modules.Administration.Commands cgb.CreateCommand(Module.Prefix + "repeat") .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("msg", ParameterType.Unparsed) .AddCheck(SimpleCheckers.ManageMessages()) @@ -73,7 +73,7 @@ namespace NadekoBot.Modules.Administration.Commands return; } 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); return;