Example #1
0
        public raffle(jerpBot aJerpBot) : base(aJerpBot, true, true, false)
        {
            m_Throttler                     = new throttler(aJerpBot);
            m_Throttler.waitTimeMax         = 15000;
            m_Throttler.lineCountMinimum    = 8;
            m_Throttler.messagesReduceTimer = false;

            userList           = new Dictionary <string, userEntry>();
            usersAddedRecently = new List <userEntry>();

            load();

            chatCommandDef tempDef = new chatCommandDef("raffle", addUser, true, true);

            tempDef.addSubCommand(new chatCommandDef("open", open, true, false));
            tempDef.addSubCommand(new chatCommandDef("close", close, true, false));
            tempDef.addSubCommand(new chatCommandDef("clear", reset, true, false));
            tempDef.addSubCommand(new chatCommandDef("draw", draw, true, false));
            tempDef.addSubCommand(new chatCommandDef("count", count, true, false));
            tempDef.addSubCommand(new chatCommandDef("describe", describe, true, false));
            tempDef.addSubCommand(new chatCommandDef("about", about, true, true));
            tempDef.addSubCommand(new chatCommandDef("useredemptions", toggleUseRedemptions, false, false));
            tempDef.useGlobalCooldown = false;
            m_BotBrain.addChatCommand(tempDef);
        }
Example #2
0
        public hydrateReminder(jerpBot aJerpBot) : base(aJerpBot, true, true, false)
        {
            m_Throttler = new throttler(aJerpBot);
            m_Throttler.requiresUserMessages = false;
            m_Throttler.messagesReduceTimer  = false;
            m_Throttler.waitTimeMax          = 30000;
            chatCommandDef tempDef = new chatCommandDef("hydrate", null, false, false);

            tempDef.addSubCommand(new chatCommandDef("current", current, true, true));
            tempDef.addSubCommand(new chatCommandDef("offset", setOffset, false, false));

            m_BotBrain.addChatCommand(tempDef);
        }
Example #3
0
        public messageRoll(jerpBot aJerpBot) : base(aJerpBot, true, true, false)
        {
            if (loadConfig())
            {
                m_Loaded = true;

                m_Throttler                       = new throttler(aJerpBot);
                m_Throttler.waitTimeMax           = 900000;
                m_Throttler.lineCountReduction    = 23333;
                m_Throttler.lineCountReductionMax = 30;

                chatCommandDef tempDef = new chatCommandDef("message", null, false, false);
                tempDef.addSubCommand(new chatCommandDef("next", forceNext, false, false));

                m_BotBrain.addChatCommand(tempDef);
            }
        }
Example #4
0
        public trivia(jerpBot aJerpBot) : base(aJerpBot, true, true, false)
        {
            m_Throttler                       = new throttler(aJerpBot);
            m_Throttler.waitTimeMax           = 120000;
            m_Throttler.lineCountReductionMax = 15;
            m_Throttler.lineCountReduction    = 4000;

            m_LoadSuccessful = load();
            m_Scores         = new Dictionary <userEntry, int>();
            m_Questions      = new List <triviaQuestion>();

            chatCommandDef tempDef = new chatCommandDef("trivia", null, true, true);

            tempDef.addSubCommand(new chatCommandDef("start", start, false, false));
            tempDef.addSubCommand(new chatCommandDef("stop", stop, true, false));
            tempDef.addSubCommand(new chatCommandDef("scores", scores, true, true));
            tempDef.addSubCommand(new chatCommandDef("topics", topics, true, true));
            tempDef.addSubCommand(new chatCommandDef("setmax", setMaxQuestions, true, true));
            tempDef.addSubCommand(new chatCommandDef("reload", reload, false, false));
            tempDef.useGlobalCooldown = false;
            m_BotBrain.addChatCommand(tempDef);
        }
        public pollManager(jerpBot aJerpBot) : base(aJerpBot, true, true, false)
        {
            m_Throttler                  = new throttler(aJerpBot);
            m_Throttler.waitTimeMax      = 30000;
            m_Throttler.lineCountMinimum = 8;

            userChoices = new Dictionary <userEntry, int>();

            chatCommandDef tempDef = new chatCommandDef("poll", null, false, false);

            tempDef.addSubCommand(new chatCommandDef("open", open, true, false));
            tempDef.addSubCommand(new chatCommandDef("close", close, true, false));
            tempDef.addSubCommand(new chatCommandDef("about", about, true, true));
            tempDef.addSubCommand(new chatCommandDef("describe", describe, true, false));
            tempDef.addSubCommand(new chatCommandDef("count", count, true, false));
            tempDef.addSubCommand(new chatCommandDef("results", results, true, false));
            tempDef.addSubCommand(new chatCommandDef("choices", choices, true, false));
            m_BotBrain.addChatCommand(tempDef);

            tempDef = new chatCommandDef("vote", vote, true, true);
            tempDef.useGlobalCooldown = false;
            m_BotBrain.addChatCommand(tempDef);
        }