20 lines
612 B
C#
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
|
|
}
|
|
}
|