How to use the twitchapi.krakenv5.channels.getChannelId function in twitchAPI

To help you get started, we’ve selected a few twitchAPI examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Amperture / twitch-sbc-integration / twitchapi / commands / settitle.py View on Github external
def react_chat_settitle(args):
    config = ConfigParser.ConfigParser()
    config.read('config.ini')
    channelName = config.get('CHAT', 'channel')
    channel = str(getChannelId(channelName))
    setChannelTitle(channel, ' '.join(args))
github Amperture / twitch-sbc-integration / twitchapi / commands / setgame.py View on Github external
def react_chat_setgame(args):
    config = ConfigParser.ConfigParser()
    config.read('config.ini')
    channelName = config.get('CHAT', 'channel')
    channel = str(getChannelId(channelName))
    setChannelGame(channel, ' '.join(args))
github Amperture / twitch-sbc-integration / pubsub / pubsubrun.py View on Github external
import thread
import time
import json
import ConfigParser
from twitchapi.krakenv5.channels import getChannelId
from config import EDITOR_TOKEN

config = ConfigParser.ConfigParser()
config.read('config.ini')


pingDict = {
        'type': 'PING'
}

channelId = str(getChannelId(config.get('CHAT', 'channel')))

listenDict = {
        'type':"LISTEN",
        'nonce':"twitchPubSub",
        'data': {
            'topics' : [
                'chat_moderator_actions.' + channelId + '.' + channelId,
                'channel-bits-events-v1.' + channelId,
                'channel-subscribe-events-v1.' + channelId
                ],
            'auth_token': EDITOR_TOKEN
        } 
}

def pubsub_handler(q_twitchbeagle, q_pubsub):

twitchAPI

A Python 3.7+ implementation of the Twitch Helix API, PubSub, EventSub and Chat

MIT
Latest version published 4 months ago

Package Health Score

72 / 100
Full package analysis

Similar packages