Exemple #1
0
        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;
        }
Exemple #3
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)
        {
            m_bot     = bot;
            m_options = options;

            m_http = new HttpManager(options);
            bot.ViewerCountChanged += bot_ViewerCountChanged;
        }
Exemple #5
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);
        }
Exemple #6
0
        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));
        }
Exemple #7
0
        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);
        }
Exemple #10
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;
        }
Exemple #11
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);
        }
Exemple #12
0
 public HttpManager(WinterOptions options)
 {
     Options = options;
 }
Exemple #13
0
 public JukeBox(WinterBot bot, WinterOptions options)
 {
     m_options = options;
     bot.Tick += bot_Tick;
 }
Exemple #14
0
 public HttpManager(WinterOptions options)
 {
     Options = options;
 }
Exemple #15
0
 public JukeBox(WinterBot bot, WinterOptions options)
 {
     m_options = options;
     bot.Tick += bot_Tick;
 }
Exemple #16
0
        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;
        }
Exemple #17
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;
        }