mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
Added graceful option to die (kill coordinator without killing shards)
This commit is contained in:
@@ -7,7 +7,7 @@ namespace NadekoBot.Services
|
||||
public interface ICoordinator
|
||||
{
|
||||
bool RestartBot();
|
||||
void Die();
|
||||
void Die(bool graceful);
|
||||
bool RestartShard(int shardId);
|
||||
IList<ShardStatus> GetAllShardStatuses();
|
||||
int GetGuildCount();
|
||||
|
@@ -39,11 +39,11 @@ namespace NadekoBot.Services
|
||||
return true;
|
||||
}
|
||||
|
||||
public void Die()
|
||||
public void Die(bool graceful)
|
||||
{
|
||||
_coordClient.Die(new DieRequest()
|
||||
{
|
||||
Graceful = false
|
||||
Graceful = graceful
|
||||
});
|
||||
}
|
||||
|
||||
|
@@ -36,7 +36,7 @@ namespace NadekoBot.Services
|
||||
return true;
|
||||
}
|
||||
|
||||
public void Die()
|
||||
public void Die(bool graceful = false)
|
||||
{
|
||||
Environment.Exit(5);
|
||||
}
|
||||
|
Reference in New Issue
Block a user