.restart fixed, close #1743

This commit is contained in:
Master Kwoth 2017-10-24 04:29:03 +02:00
parent 3005ae3595
commit ec539bf884
2 changed files with 3 additions and 2 deletions

View File

@ -335,7 +335,8 @@ namespace NadekoBot.Modules.Administration
await ReplyConfirmLocalized("restarting").ConfigureAwait(false);
Process.Start(cmd.Cmd, cmd.Args);
Environment.Exit(0);
var sub = _cache.Redis.GetSubscriber();
sub.Publish(_creds.RedisKey() + "_die", "", StackExchange.Redis.CommandFlags.FireAndForget);
}
[NadekoCommand, Usage, Description, Aliases]

View File

@ -21,7 +21,7 @@ namespace NadekoBot.Core.Services.Impl
private readonly IBotCredentials _creds;
private readonly DateTime _started;
public const string BotVersion = "2.1.0";
public const string BotVersion = "2.1.1";
public string Author => "Kwoth#2560";
public string Library => "Discord.Net";