mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
- Implemented grpc based coordinator. Supports restarting, killing single or all shards, as well as getting current shard statuses. (Adaptation of the one used by the public bot) - Coord is setup via coord.yml file - Methods from SelfService which deal with shard/bot restart etc have been moved to ICoordinator (with GrpcRemoteCoordinator being the default implementation atm) - Vastly simplified NadekoBot/Program.cs
15 lines
349 B
C#
15 lines
349 B
C#
using System;
|
|
using System.Diagnostics;
|
|
|
|
namespace NadekoBot.Coordinator
|
|
{
|
|
public sealed record ShardStatus(
|
|
int ShardId,
|
|
DateTime LastUpdate,
|
|
int GuildCount = 0,
|
|
ConnState State = ConnState.Disconnected,
|
|
bool ShouldRestart = false,
|
|
Process Process = null,
|
|
int StateCounter = 0
|
|
);
|
|
} |