Added usePrivilegedIntents to creds.yml as an option for users who don't have them enabled

Added an explanation on how to enable intents if the bot doesn't have them and fails to login
This commit is contained in:
Kwoth
2022-03-03 02:31:32 +01:00
parent 01cc6e52d5
commit 03367c5ec4
6 changed files with 44 additions and 9 deletions

View File

@@ -165,9 +165,9 @@ public sealed class BotCredsProvider : IBotCredsProvider
if (File.Exists(CREDS_FILE_NAME))
{
var creds = Yaml.Deserializer.Deserialize<Creds>(File.ReadAllText(CREDS_FILE_NAME));
if (creds.Version <= 2)
if (creds.Version <= 3)
{
creds.Version = 3;
creds.Version = 4;
File.WriteAllText(CREDS_FILE_NAME, Yaml.Serializer.Serialize(creds));
}
}

View File

@@ -7,7 +7,7 @@ namespace NadekoBot.Services;
public class StatsService : IStatsService, IReadyExecutor, INService, IDisposable
{
public const string BOT_VERSION = "4.0.0";
public const string BOT_VERSION = "4.0.1";
public string Author
=> "Kwoth#2452";