Up to 5 repeaters.
This commit is contained in:
		@@ -188,6 +188,8 @@ namespace NadekoBot.Modules.Administration
 | 
			
		||||
                {
 | 
			
		||||
                    var gc = uow.GuildConfigs.For(Context.Guild.Id, set => set.Include(x => x.GuildRepeaters));
 | 
			
		||||
 | 
			
		||||
                    if (gc.GuildRepeaters.Count >= 5)
 | 
			
		||||
                        return;
 | 
			
		||||
                    gc.GuildRepeaters.Add(toAdd);
 | 
			
		||||
 | 
			
		||||
                    await uow.CompleteAsync().ConfigureAwait(false);
 | 
			
		||||
 
 | 
			
		||||
@@ -5766,7 +5766,7 @@ namespace NadekoBot.Resources {
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        ///    Looks up a localized string similar to Repeat a message every X minutes in the current channel..
 | 
			
		||||
        ///    Looks up a localized string similar to Repeat a message every X minutes in the current channel. You can have up to 5 repeating messages on the server in total..
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        public static string repeat_desc {
 | 
			
		||||
            get {
 | 
			
		||||
 
 | 
			
		||||
@@ -274,7 +274,7 @@
 | 
			
		||||
    <value>repeat</value>
 | 
			
		||||
  </data>
 | 
			
		||||
  <data name="repeat_desc" xml:space="preserve">
 | 
			
		||||
    <value>Repeat a message every X minutes in the current channel.</value>
 | 
			
		||||
    <value>Repeat a message every X minutes in the current channel. You can have up to 5 repeating messages on the server in total.</value>
 | 
			
		||||
  </data>
 | 
			
		||||
  <data name="repeat_usage" xml:space="preserve">
 | 
			
		||||
    <value>`{0}repeat 5 Hello there`</value>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user