Ejemplo n.º 1
0
def register_self(lrrbot, conn, event, respond_to):
    """
	Command: !live register

	Register your channel as a fanstreamer channel.
	"""
    channel = irc.client.NickMask(event.source).nick.lower()
    yield from twitch.follow_channel(channel)
    conn.privmsg(respond_to, "Channel '%s' added to the fanstreamer list." % channel)
Ejemplo n.º 2
0
def register(lrrbot, conn, event, respond_to, channel):
    """
	Command: !live register CHANNEL

	Register CHANNEL as a fanstreamer channel.
	"""
    try:
        yield from twitch.follow_channel(channel)
        conn.privmsg(respond_to, "Channel '%s' added to the fanstreamer list." % channel)
    except urllib.error.HTTPError:
        conn.privmsg(respond_to, "'%s' isn't a Twitch channel." % channel)