mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 06:17:55 +00:00
refactor: move ExtractNodeIndex to BotConfig.Cluster class
This commit is contained in:
parent
0d42328694
commit
39c8590bce
2 changed files with 4 additions and 5 deletions
|
|
@ -32,5 +32,8 @@ public class BotConfig
|
|||
public string NodeName { get; set; }
|
||||
public int TotalShards { get; set; }
|
||||
public int TotalNodes { get; set; }
|
||||
|
||||
// Node name eg. "pluralkit-3", want to extract the 3. blame k8s :p
|
||||
public int NodeIndex => int.Parse(NodeName.Split("-").Last());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue