Ejemplo n.º 1
0
        public BettingSystem(WinterBot bot, WinterOptions options)
        {
            m_options = options;
            m_bot = bot;
            Enabled = true;

            HttpManager.Instance.GetAsync("points.php", LoadPoints);
        }
Ejemplo n.º 2
0
        public ViewerCountLogger(WinterBot bot, WinterOptions options)
            : base(bot)
        {
            m_bot = bot;
            m_options = options;

            m_http = new HttpManager(options);
            bot.ViewerCountChanged += bot_ViewerCountChanged;
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 4
0
        public ViewerCountLogger(WinterBot bot, WinterOptions options)
            : base(bot)
        {
            m_bot     = bot;
            m_options = options;

            m_http = new HttpManager(options);
            bot.ViewerCountChanged += bot_ViewerCountChanged;
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 8
0
        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;
        }
Ejemplo n.º 9
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;

            HttpManager.Instance.GetAsync("api.php", "GETCMDS=1", Load);
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 12
0
 public HttpManager(WinterOptions options)
 {
     Options = options;
 }
Ejemplo n.º 13
0
 public JukeBox(WinterBot bot, WinterOptions options)
 {
     m_options = options;
     bot.Tick += bot_Tick;
 }
Ejemplo n.º 14
0
 public HttpManager(WinterOptions options)
 {
     Options = options;
 }
Ejemplo n.º 15
0
 public JukeBox(WinterBot bot, WinterOptions options)
 {
     m_options = options;
     bot.Tick += bot_Tick;
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }