SecondBot/SecondBotEvents/Config/BotRejoinConfig.cs
2026-06-13 04:30:13 -06:00

20 lines
612 B
C#

using System;
namespace SecondBotEvents.Config
{
/// <summary>
/// Configuration for bot reconnection jitter timings.
/// </summary>
public class BotRejoinConfig
{
/// <summary>
/// Minimum jitter (in milliseconds) before a bot attempts to reconnect after a restart.
/// </summary>
public int JitterMinMs { get; set; } = 5000; // 5 seconds
/// <summary>
/// Maximum jitter (in milliseconds) before a bot attempts to reconnect after a restart.
/// </summary>
public int JitterMaxMs { get; set; } = 30000; // 30 seconds
}
}