public BettingSystem(WinterBot bot, WinterOptions options) { m_options = options; m_bot = bot; Enabled = true; HttpManager.Instance.GetAsync("points.php", LoadPoints); }
public ViewerCountLogger(WinterBot bot, WinterOptions options) : base(bot) { m_bot = bot; m_options = options; m_http = new HttpManager(options); bot.ViewerCountChanged += bot_ViewerCountChanged; }
public BettingSystem(WinterBot bot, WinterOptions options) { m_options = options; m_bot = bot; Enabled = true; m_http = new HttpManager(options); m_http.GetAsync("points.php", LoadPoints); }
public static void Init(WinterBot bot) { WinterOptions options = new WinterOptions(bot.Options); bot.AddCommands(new JukeBox(bot, options)); bot.AddCommands(new BettingSystem(bot, options)); bot.AddCommands(new ViewerCountLogger(bot, options)); new ChatSaver(bot, options); bot.AddCommands(new BetterCommands(bot, options)); }
public ViewerCountLogger(WinterBot bot, WinterOptions options) : base(bot) { if (!bot.Channel.Equals("zlfreebird", StringComparison.CurrentCultureIgnoreCase)) return; m_bot = bot; m_options = options; bot.ViewerCountChanged += bot_ViewerCountChanged; }
public BetterCommands(WinterBot bot, WinterOptions options) : base(bot) { if (bot.Options.ChatOptions.UserCommandsEnabled) return; m_bot = bot; m_options = options; m_bot.UnknownCommandReceived += UnknownCommandReceived; HttpManager.Instance.GetAsync("api.php", "GETCMDS=1", Load); }
public ChatSaver(WinterBot bot, WinterOptions options) : base(bot) { m_options = options; m_bot = bot; m_http = new HttpManager(options); bot.MessageReceived += bot_MessageReceived; bot.ActionReceived += bot_ActionReceived; bot.UserSubscribed += bot_UserSubscribed; bot.ChatClear += bot_ChatClear; bot.UserBanned += bot_UserBanned; bot.UserTimedOut += bot_UserTimedOut; }
public BetterCommands(WinterBot bot, WinterOptions options) : base(bot) { if (bot.Options.ChatOptions.UserCommandsEnabled) { return; } m_bot = bot; m_options = options; m_bot.UnknownCommandReceived += UnknownCommandReceived; m_http = new HttpManager(options); m_http.GetAsync("api.php", "GETCMDS=1", Load); }
public HttpManager(WinterOptions options) { Options = options; }
public JukeBox(WinterBot bot, WinterOptions options) { m_options = options; bot.Tick += bot_Tick; }
public ChatSaver(WinterBot bot, WinterOptions options) : base(bot) { m_options = options; m_bot = bot; //if (!bot.Channel.Equals("zlfreebird", StringComparison.CurrentCultureIgnoreCase)) // return; bot.MessageReceived += bot_MessageReceived; bot.ActionReceived += bot_ActionReceived; bot.UserSubscribed += bot_UserSubscribed; bot.ChatClear += bot_ChatClear; bot.UserBanned += bot_UserBanned; bot.UserTimedOut += bot_UserTimedOut; }