Add default bot implementation (#3038)

* Add default bot implementation

* Thought so

* Brain damage for netf
This commit is contained in:
Łukasz Domeradzki
2023-10-18 22:57:58 +02:00
committed by GitHub
parent 52eacaf577
commit 5d467aca9a
5 changed files with 25 additions and 4 deletions

View File

@@ -384,7 +384,7 @@ internal static class Logging {
command = command[commandPrefix.Length..];
}
Bot? targetBot = Bot.Bots?.OrderBy(static bot => bot.Key, Bot.BotsComparer).Select(static bot => bot.Value).FirstOrDefault();
Bot? targetBot = Bot.GetDefaultBot();
if (targetBot == null) {
Console.WriteLine($@"<< {Strings.ErrorNoBotsDefined}");