def __init__(self, test=False):
     self.test = test
     self.entry_open = False
     self.race_pending = False
     self.open_time = init_cooldown()
     self.racers = dict()
     self.instance = None
Beispiel #2
0
    def __init__(self):
        self.url = 'https://api.twitch.tv/kraken/streams/' + CHANID
        self.updateInterval = five_mins

        self.lastUpdate = init_cooldown()
        self.live = False
        self.stream_start = None
        self.game = None

        self.updateStreamData()
Beispiel #3
0
 def __init__(self):
     self.cooldown = init_cooldown()
Beispiel #4
0
    def __init__(self, timer_objs):
        # constants
        self.currency_name = 'clovers'

        # db objects
        self.con = timer_objs.C.con
        self.cur = timer_objs.C.cur

        # timer objects
        self.cbr = timer_objs.CBR
        self.content = timer_objs.CONTENT

        self.dir = ROOT_PATH
        self.regulars = REGULARS
        self.moderators = MODERATORS
        self.admin = [CHANNEL_NAME]
        self.user = None
        self.recent_chatters = list()
        self.prizes = ['MINION'] * 19 + ['OUTFIT'] * 2 + ['MOUNT']
        self.winners = []

        #all commands and their functions
        self.commands_public = {
            '!%s' % self.currency_name: self.command_currency,
            '!win': self.command_kill,
            '!wipe': self.command_wipe,
            '!bet': self.command_bet,
            '!random': self.command_random,
            '!give': self.command_give,
            '!beg': self.command_beg,
            '!scrub': self.command_scrub,
            '!nextstream': self.command_nextstream,
            '!race': self.command_race,
            '!top5': self.command_top5,
            '!content': self.command_content,
            '!job': self.command_job,
            #'!merrychristmas' : self.command_merrychristmas,
        }
        self.commands_regulars = {
            #'!bossquery': self.command_bossquery,
            '!betstart': self.command_betstart,
            '!betclose': self.command_betclose,
        }
        self.commands_moderators = {
            '!addreg': self.command_addreg,
            '!betpay': self.command_betpay,
            '!betopts': self.command_betopts,
            '!not8th': self.command_not8th,
            '!bonus': self.command_bonus,
            '!raidstart': self.command_raidstart,
            '!raidstop': self.command_raidstop,
        }
        self.commands_private = {
            '!addmod': self.command_addmod,
        }

        self.cooldowns = {
            '!betpay': init_cooldown(),
            '!win': init_cooldown(),
            '!wipe': init_cooldown(),
            '!not8th': init_cooldown(),
            '!bonus': init_cooldown(),
            '!race': init_cooldown(),
        }

        # functionality for !race
        self.entry_open = False

        # functionality for betting
        self.start_bet = False
        self.bets = dict()
        self.betters = list()
        self.bet_options = dict()
        self.bet_payout = 5

        # functionality for raiding
        self.raid = False
Beispiel #5
0
 def __init__(self):
     self.voting_open = False
     self.start_time = init_cooldown()
     self.options = dict()
     self.voted = list()