Пример #1
0
        /// <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);
        }
Пример #2
0
 /// <summary>Software entry point - starts the bot.</summary>
 public static void StartBotHandler(string[] args, DiscordBotConfig internalConfig)
 {
     LaunchBotThread(args, internalConfig);
 }