コード例 #1
0
ファイル: Betting.cs プロジェクト: KnightRobby/WinterBot
        public BettingSystem(WinterBot bot, WinterOptions options)
        {
            m_options = options;
            m_bot = bot;
            Enabled = true;

            HttpManager.Instance.GetAsync("points.php", LoadPoints);
        }
コード例 #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;
        }
コード例 #3
0
ファイル: Betting.cs プロジェクト: NitroXenon/WinterBot
        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);
        }
コード例 #4
0
ファイル: ViewerCountLogger.cs プロジェクト: hasaki/WinterBot
        public ViewerCountLogger(WinterBot bot, WinterOptions options)
            : base(bot)
        {
            m_bot     = bot;
            m_options = options;

            m_http = new HttpManager(options);
            bot.ViewerCountChanged += bot_ViewerCountChanged;
        }
コード例 #5
0
ファイル: Betting.cs プロジェクト: hasaki/WinterBot
        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);
        }
コード例 #6
0
ファイル: Plugin.cs プロジェクト: hasaki/WinterBot
        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));
        }
コード例 #7
0
ファイル: Plugin.cs プロジェクト: NitroXenon/WinterBot
        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));
        }
コード例 #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;
        }
コード例 #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);
        }
コード例 #10
0
ファイル: ChatSaver.cs プロジェクト: hasaki/WinterBot
        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;
        }
コード例 #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);
        }
コード例 #12
0
 public HttpManager(WinterOptions options)
 {
     Options = options;
 }
コード例 #13
0
ファイル: JukeBox.cs プロジェクト: hasaki/WinterBot
 public JukeBox(WinterBot bot, WinterOptions options)
 {
     m_options = options;
     bot.Tick += bot_Tick;
 }
コード例 #14
0
ファイル: HttpManager.cs プロジェクト: NitroXenon/WinterBot
 public HttpManager(WinterOptions options)
 {
     Options = options;
 }
コード例 #15
0
ファイル: JukeBox.cs プロジェクト: NitroXenon/WinterBot
 public JukeBox(WinterBot bot, WinterOptions options)
 {
     m_options = options;
     bot.Tick += bot_Tick;
 }
コード例 #16
0
ファイル: ChatSaver.cs プロジェクト: KnightRobby/WinterBot
        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;
        }
コード例 #17
0
ファイル: ChatSaver.cs プロジェクト: NitroXenon/WinterBot
        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;
        }