.rrc reduced to a minimum of 60 seconds. b1nzy wasn't happy about this

This commit is contained in:
Kwoth 2017-01-05 19:13:53 +01:00
parent c5037a2c1f
commit 725d844131
3 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ namespace NadekoBot.Modules.Utility
{ {
var channel = (ITextChannel)Context.Channel; var channel = (ITextChannel)Context.Channel;
if (timeout < 0 || timeout > 3600) if ((timeout < 60 && timeout != 0) || timeout > 3600)
return; return;
Timer t; Timer t;

View File

@ -6063,7 +6063,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Rotates a roles color on an interval with a list of supplied colors. First argument is interval in seconds. Second argument is a role, followed by a space-separated list of colors in hex. Provide a rolename with a 0 interval to disable.. /// Looks up a localized string similar to Rotates a roles color on an interval with a list of supplied colors. First argument is interval in seconds (Minimum 60). Second argument is a role, followed by a space-separated list of colors in hex. Provide a rolename with a 0 interval to disable..
/// </summary> /// </summary>
public static string rotaterolecolor_desc { public static string rotaterolecolor_desc {
get { get {
@ -6072,7 +6072,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to `{0}rrc 1 MyLsdRole #ff0000 #00ff00 #0000ff` or `{0}rrc 0 MyLsdRole`. /// Looks up a localized string similar to `{0}rrc 60 MyLsdRole #ff0000 #00ff00 #0000ff` or `{0}rrc 0 MyLsdRole`.
/// </summary> /// </summary>
public static string rotaterolecolor_usage { public static string rotaterolecolor_usage {
get { get {

View File

@ -2866,9 +2866,9 @@
<value>rotaterolecolor rrc</value> <value>rotaterolecolor rrc</value>
</data> </data>
<data name="rotaterolecolor_desc" xml:space="preserve"> <data name="rotaterolecolor_desc" xml:space="preserve">
<value>Rotates a roles color on an interval with a list of supplied colors. First argument is interval in seconds. Second argument is a role, followed by a space-separated list of colors in hex. Provide a rolename with a 0 interval to disable.</value> <value>Rotates a roles color on an interval with a list of supplied colors. First argument is interval in seconds (Minimum 60). Second argument is a role, followed by a space-separated list of colors in hex. Provide a rolename with a 0 interval to disable.</value>
</data> </data>
<data name="rotaterolecolor_usage" xml:space="preserve"> <data name="rotaterolecolor_usage" xml:space="preserve">
<value>`{0}rrc 1 MyLsdRole #ff0000 #00ff00 #0000ff` or `{0}rrc 0 MyLsdRole`</value> <value>`{0}rrc 60 MyLsdRole #ff0000 #00ff00 #0000ff` or `{0}rrc 0 MyLsdRole`</value>
</data> </data>
</root> </root>