2019-05-08 18:08:56 +00:00
|
|
|
namespace PluralKit.Bot
|
|
|
|
{
|
|
|
|
public class BotConfig
|
|
|
|
{
|
2020-08-25 17:32:19 +00:00
|
|
|
public static readonly string[] DefaultPrefixes = {"pk;", "pk!"};
|
|
|
|
|
2019-05-08 18:08:56 +00:00
|
|
|
public string Token { get; set; }
|
2019-06-15 10:03:07 +00:00
|
|
|
public ulong? ClientId { get; set; }
|
2020-08-25 17:32:19 +00:00
|
|
|
|
|
|
|
// ASP.NET configuration merges arrays with defaults, so we leave this field nullable
|
|
|
|
// and fall back to the separate default array at the use site :)
|
|
|
|
// This does bind [] as null (therefore default) instead of an empty array, but I can live w/ that.
|
|
|
|
public string[] Prefixes { get; set; }
|
2021-03-18 08:47:58 +00:00
|
|
|
|
|
|
|
public int? MaxShardConcurrency { get; set; }
|
2021-06-08 17:37:44 +00:00
|
|
|
|
|
|
|
public ulong? AdminRole { get; set; }
|
2021-06-09 12:49:12 +00:00
|
|
|
|
|
|
|
public ClusterSettings? Cluster { get; set; }
|
2021-06-09 14:22:10 +00:00
|
|
|
|
|
|
|
public string? GatewayQueueUrl { get; set; }
|
2021-06-09 12:49:12 +00:00
|
|
|
|
|
|
|
public record ClusterSettings
|
|
|
|
{
|
|
|
|
public string NodeName { get; set; }
|
|
|
|
public int TotalShards { get; set; }
|
|
|
|
public int TotalNodes { get; set; }
|
|
|
|
}
|
2019-05-08 18:08:56 +00:00
|
|
|
}
|
|
|
|
}
|