public ViewerCountLogger(WinterBot bot, WinterOptions options)
            : base(bot)
        {
            m_bot = bot;
            m_options = options;

            m_http = new HttpManager(options);
            bot.ViewerCountChanged += bot_ViewerCountChanged;
        }
Example #2
0
        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 ViewerCountLogger(WinterBot bot, WinterOptions options)
            : base(bot)
        {
            if (!bot.Channel.Equals("zlfreebird", StringComparison.CurrentCultureIgnoreCase))
                return;

            m_bot = bot;
            m_options = options;

            m_http = new HttpManager(options);
            bot.ViewerCountChanged += bot_ViewerCountChanged;
        }
Example #4
0
        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);
        }
Example #5
0
        public ChatSaver(WinterBot bot, WinterOptions options)
            : base(bot)
        {
            m_options = options;
            m_bot = bot;
            //if (!bot.Channel.Equals("zlfreebird", StringComparison.CurrentCultureIgnoreCase))
            //    return;

            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;
        }
Example #6
0
 public HttpGet(HttpManager http, string url, Action <Stream> callback)
 {
     m_http     = http;
     m_url      = url;
     m_callback = callback;
 }
Example #7
0
 public HttpGet(HttpManager http, string url, Action<Stream> callback)
 {
     m_http = http;
     m_url = url;
     m_callback = callback;
 }
Example #8
0
 public HttpPost(HttpManager manager, string url, bool compress, StringBuilder data)
 {
     m_http = manager;
     m_url = url;
     m_compress = compress;
     m_data = data;
 }
Example #9
0
        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;
        }