Пример #1
0
    def __init__(self):
        from pajbot.apiwrappers.bttv import BTTVAPI

        self.api = BTTVAPI(RedisManager.get())
        self.streamer = StreamHelper.get_streamer()
        self.streamer_id = StreamHelper.get_streamer_id()
        super().__init__()
Пример #2
0
class BTTVEmoteManager(GenericChannelEmoteManager):
    friendly_name = "BTTV"

    def __init__(self):
        from pajbot.apiwrappers.bttv import BTTVAPI

        self.api = BTTVAPI(RedisManager.get())
        self.streamer = StreamHelper.get_streamer()
        self.streamer_id = StreamHelper.get_streamer_id()
        super().__init__()

    def load_channel_emotes(self):
        """Load channel emotes from the cache if available, or else, query the API."""
        self.channel_emotes = self.api.get_channel_emotes(self.streamer_id)

    def update_channel_emotes(self):
        self.channel_emotes = self.api.get_channel_emotes(self.streamer_id, force_fetch=True)
Пример #3
0
    def __init__(self):
        from pajbot.apiwrappers.bttv import BTTVAPI

        self.api = BTTVAPI(RedisManager.get())
        super().__init__()