Esempio n. 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);
        }
Esempio n. 2
0
 /// <summary>Initializes the connection monitor. Call <see cref="StartMonitorLoop"/> to start the monitor loop.</summary>
 public ConnectionMonitor(DiscordBot bot)
 {
     Bot = bot;
 }
 /// <summary>Construct the cache instance.</summary>
 public DiscordMessageCache(DiscordBot _bot, int size)
 {
     Bot = _bot;
     MessagesPerChannel = size;
 }