Advertisement
PikalaxALT

Untitled

Apr 6th, 2016
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.64 KB | None | 0 0
  1. def send_msg(word, word_eol, userdata):
  2.     global whispering
  3.     if not whispering:
  4.         whispering = True
  5.         hc.prnt(word_eol[0])
  6.         if re.match(twitch, hc.get_info("server")) is not None and len(word) > 2 and not word[1].startswith("#"):
  7.             hc.command("privmsg #jtv :/w {}".format(word_eol[1]))
  8.             hc.command("query -nofocus " + word_eol[1])
  9.         if re.match(botnick, me, re.IGNORECASE) is not None:
  10.             if re.match(twitch, serv) is not None and chan == ts_params["channel"] and ts_params["active"]:
  11.                 ttsbot(word, word_eol, userdata)
  12.         whispering = False
  13.     return hc.EAT_ALL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement