Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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))
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))
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):