mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Add command prefix configuration
This commit is contained in:
parent
87619a728e
commit
2206185d55
3 changed files with 38 additions and 17 deletions
|
|
@ -2,7 +2,14 @@ namespace PluralKit.Bot
|
|||
{
|
||||
public class BotConfig
|
||||
{
|
||||
public static readonly string[] DefaultPrefixes = {"pk;", "pk!"};
|
||||
|
||||
public string Token { get; set; }
|
||||
public ulong? ClientId { get; set; }
|
||||
|
||||
// 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; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue