.die should work properly now

This commit is contained in:
Master Kwoth
2017-10-22 16:09:51 +02:00
parent 082e2fbe2d
commit 062a4bcc20
2 changed files with 6 additions and 1 deletions

View File

@ -65,6 +65,10 @@ namespace NadekoBot.Core.Services
sub.Subscribe(_key + "_shardcoord_stop",
OnStop,
CommandFlags.FireAndForget);
sub.Subscribe(_key + "_die",
(ch, x) => Environment.Exit(0),
CommandFlags.FireAndForget);
}
private void OnStop(RedisChannel ch, RedisValue data)