.restart fixed, close #1743
This commit is contained in:
parent
3005ae3595
commit
ec539bf884
@ -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]
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user