Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions hirc.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

# change it to your own
# get your oauth here: https://twitchapps.com/tmi/
nickname = 'twitch_plays_3ds'
oauth = 'oauth:qmdwk3rsm4qau59zf2dpxixsf4wxzf'
nickname = 'Mis012'
oauth = 'oauth:rb6ki1vmhcbebm8la7a0yp1rngm8dp'

def ensure_dir(dir_path):
if not os.path.exists(dir_path):
Expand Down Expand Up @@ -53,11 +53,11 @@ def log_msg(name, msg):
for item in [x for x in tmi_list if "." not in x.username]:
message_orig = item.message.replace(chr(1) + "ACTION", "/me").replace(chr(1), '').lstrip().rstrip()
log_msg(item.username, message_orig)
safe_print(item.username + ": " + message_orig)
safe_print("\033[94m" + item.username + "\033[0m: " + message_orig)

if last_message != '':
safe_print(">> " + nickname + ": " + last_message)
bot.send_message(last_message)
log_msg(nickname, last_message)
last_message = ''
time.sleep(0.01)
time.sleep(0.01)