diff --git a/NadekoBot.Core/Modules/Administration/SelfCommands.cs b/NadekoBot.Core/Modules/Administration/SelfCommands.cs index 5ba0c7e8..69d30f2a 100644 --- a/NadekoBot.Core/Modules/Administration/SelfCommands.cs +++ b/NadekoBot.Core/Modules/Administration/SelfCommands.cs @@ -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] diff --git a/NadekoBot.Core/Services/Impl/StatsService.cs b/NadekoBot.Core/Services/Impl/StatsService.cs index e38b4215..bd1f7abf 100644 --- a/NadekoBot.Core/Services/Impl/StatsService.cs +++ b/NadekoBot.Core/Services/Impl/StatsService.cs @@ -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";