Example #1
0
    def __init__(self, queue, python_folder, **kwargs):
        ChatModule.__init__(self)
        log.info("Initializing funstream chat")

        # Reading config from main directory.
        conf_folder = os.path.join(python_folder, "conf")
        conf_file = os.path.join(conf_folder, "sc2tv.cfg")
        config = load_from_config_file(conf_file, CONF_DICT)
        self._conf_params.update(
            {'folder': conf_folder, 'file': conf_file,
             'filename': ''.join(os.path.basename(conf_file).split('.')[:-1]),
             'parser': config,
             'config': CONF_DICT,
             'gui': CONF_GUI})

        self.queue = queue
        self.socket = CONF_DICT['config']['socket']
        self.channels_list = CONF_DICT['config']['channels_list']
        self.fs_thread = {}

        if len(self.channels_list) == 1:
            if CONF_DICT['config']['show_channel_names']:
                CONF_DICT['config']['show_channel_names'] = False

        self.testing = kwargs.get('testing')
        if self.testing:
            self.testing = TestSc2tv(self)
Example #2
0
    def __init__(self, *args, **kwargs):
        log.info("Initializing twitch chat")
        ChatModule.__init__(self, *args, **kwargs)

        self.host = CONF_DICT['config']['host']
        self.port = int(CONF_DICT['config']['port'])
        self.bttv = CONF_DICT['config']['bttv']
        self.access_code = self._conf_params['config'].get('access_code')
        if self.access_code:
            headers['Authorization'] = 'OAuth {}'.format(self.access_code)

        self.rest_add('GET', 'oidc', self.parse_oidc_request)
        self.rest_add('POST', 'oidc', self.oidc_code)
Example #3
0
    def __init__(self, queue, python_folder, **kwargs):
        ChatModule.__init__(self)
        log.info("Initializing twitch chat")

        # Reading config from main directory.
        conf_folder = os.path.join(python_folder, "conf")
        conf_file = os.path.join(conf_folder, "twitch.cfg")

        config = load_from_config_file(conf_file, CONF_DICT)
        self._conf_params.update({
            'folder':
            conf_folder,
            'file':
            conf_file,
            'filename':
            ''.join(os.path.basename(conf_file).split('.')[:-1]),
            'parser':
            config,
            'config':
            CONF_DICT,
            'gui':
            CONF_GUI,
            'settings': {}
        })

        self.queue = queue
        self.host = CONF_DICT['config']['host']
        self.port = int(CONF_DICT['config']['port'])
        self.channels_list = CONF_DICT['config']['channels_list']
        self.bttv = CONF_DICT['config']['bttv']
        self.tw_dict = {}

        if len(self.channels_list) == 1:
            if CONF_DICT['config']['show_channel_names']:
                CONF_DICT['config']['show_channel_names'] = False

        self.testing = kwargs.get('testing')
        if self.testing:
            self.testing = TestTwitch(self)
Example #4
0
 def __init__(self, *args, **kwargs):
     log.info("Initializing hitbox chat")
     ChatModule.__init__(self, *args, **kwargs)
Example #5
0
    def __init__(self, *args, **kwargs):
        log.info("Initializing goodgame chat")
        ChatModule.__init__(self, *args, **kwargs)

        self.host = CONF_DICT['config']['socket']
Example #6
0
 def __init__(self, *args, **kwargs):
     log.info("Initializing beampro chat")
     ChatModule.__init__(self, *args, **kwargs)
Example #7
0
    def __init__(self, *args, **kwargs):
        log.info("Initializing funstream chat")
        ChatModule.__init__(self, *args, **kwargs)

        self.socket = CONF_DICT['config']['socket']