From de8d4b7d9ebd80a75bceb8cd45706ab80b657e67 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Thu, 3 Oct 2024 12:05:16 +0000 Subject: [PATCH] docs: Version upped to 5.1.13, updated CHANGELOG.md fix: Fixed seq comment in creds --- CHANGELOG.md | 7 +++++++ src/NadekoBot/NadekoBot.csproj | 2 +- src/NadekoBot/_common/Creds.cs | 4 ++-- src/NadekoBot/_common/Impl/BotCredsProvider.cs | 4 ++-- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd8f203be..de55144ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ Mostly based on [keepachangelog](https://keepachangelog.com/en/1.0.0/) except date format. a-c-f-r-o +## [5.1.13] - 03.10.2024 + +### Fixed + +- Grpc api server will no longer start unless enabled in creds +- Seq comment in creds fixed + ## [5.1.12] - 03.10.2024 ### Added diff --git a/src/NadekoBot/NadekoBot.csproj b/src/NadekoBot/NadekoBot.csproj index 8a539eab2..0e2a10046 100644 --- a/src/NadekoBot/NadekoBot.csproj +++ b/src/NadekoBot/NadekoBot.csproj @@ -4,7 +4,7 @@ enable true en - 5.1.12 + 5.1.13 $(MSBuildProjectDirectory) diff --git a/src/NadekoBot/_common/Creds.cs b/src/NadekoBot/_common/Creds.cs index 3d68c263b..bc118f3f1 100644 --- a/src/NadekoBot/_common/Creds.cs +++ b/src/NadekoBot/_common/Creds.cs @@ -6,7 +6,7 @@ namespace NadekoBot.Common; public sealed class Creds : IBotCreds { [Comment("""DO NOT CHANGE""")] - public int Version { get; set; } = 11; + public int Version { get; set; } = 12; [Comment("""Bot token. Do not share with anyone ever -> https://discordapp.com/developers/applications/""")] public string Token { get; set; } @@ -164,7 +164,7 @@ public sealed class Creds : IBotCreds public GrpcApiConfig GrpcApi { get; set; } [Comment(""" - Url to + Url and api key to a seq server. If url is set, bot will try to send logs to it. """)] public SeqConfig Seq { get; set; } diff --git a/src/NadekoBot/_common/Impl/BotCredsProvider.cs b/src/NadekoBot/_common/Impl/BotCredsProvider.cs index b291aab25..7d8781c32 100644 --- a/src/NadekoBot/_common/Impl/BotCredsProvider.cs +++ b/src/NadekoBot/_common/Impl/BotCredsProvider.cs @@ -140,9 +140,9 @@ public sealed class BotCredsProvider : IBotCredsProvider creds.BotCache = BotCacheImplemenation.Memory; } - if (creds.Version < 11) + if (creds.Version < 12) { - creds.Version = 11; + creds.Version = 12; File.WriteAllText(CREDS_FILE_NAME, Yaml.Serializer.Serialize(creds)); } }