/// <summary>Launches a bot thread.</summary> public static void LaunchBotThread(string[] args, DiscordBotConfig internalConfig) { CurrentBot = new DiscordBot { ClientConfig = internalConfig }; Thread thr = new(new ParameterizedThreadStart(BotThread)) { Name = "discordbotthread" }; thr.Start(args); }
/// <summary>Software entry point - starts the bot.</summary> public static void StartBotHandler(string[] args, DiscordBotConfig internalConfig) { LaunchBotThread(args, internalConfig); }