public TimeoutController(WinterBot bot) { m_winterBot = bot; LoadOptions(bot); m_denyList = new UserSet(bot, "deny"); m_winterBot.MessageReceived += CheckMessage; m_winterBot.ActionReceived += CheckAction; m_winterBot.StreamOffline += StreamStateChange; m_winterBot.StreamOnline += StreamStateChange; }
private void LoadExtensions() { if (m_options.Regulars) { m_regulars = new UserSet(this, "regulars"); AddCommands(new Regulars(this)); } ChatLog.Init(this); AddCommands(new AutoMessage(this)); AddCommands(new UserCommands(this)); AddCommands(new TimeoutController(this)); AddCommands(new Quiet(this)); AddCommands(new AutoPoll(this)); }