Crea
Not enough ratings
Twitch Chat Plugin
   
Award
Favorite
Favorited
Unfavorite
Tags: Interface
File Size
Posted
Updated
108.963 KB
21 Feb, 2015 @ 8:02pm
30 Jun, 2016 @ 2:15pm
5 Change Notes ( view )

Subscribe to download
Twitch Chat Plugin

Description
This plugin allows you to view Twitch chat from your stream in game, and respond to that Twitch chat.



How to:
After installing this mod, go to the folder where workshop mods are kept and find the folder that it's in.

Then open the file titled 'registration.py'

On OSX the file can be found at: /Users/[USERNAME]/Library/Application Support/Steam/SteamApps/workshop/content/280520/396860594/twitch_chat

On Windows the file can be found at: C:\Program Files (x86)\Steam\steamapps\workshop\content\280520\396860594\twitch_chat

You'll see a bunch of text, but there's only a few lines you have to worry about.

The first is: CHANNELS = ['#siegegames']
Replace '#siegegames' with the channel you want the bot to go in, with a # in front of it.

The next thing you have to worry about is the CMD_PREFIX = '!'

By default, this plugin filters out any message starting with an ! from appearing in the chat you see. If you want it to be something else, you can change it, if you don't want to filter anything, replace the ! with a long string of nonsense.

The next two things you want to worry about are NICK and PASSWORD.

By default, the plugin uses a Twitch account called 'CreaOnTwitch'. The advantage to using this is that it's quick and easy, the disadvantage is that if a lot of people use it, Twitch will lock it from being able to send any text. (If everyone collectively using it sends more than 20 messages in 30 seconds, it will be locked out for 8 hours)

If you plan to use this often, I'd reccomend you set it up for your account. Put your Account Name into the NICK field. Then go to http://www.twitchapps.com/tmi/ and log in. It will give you your password, which you should put into the PASSWORD field.

Alternatively, you could create a different account if you don't want to use your own.

Using the plugin
When in game, it will automatically add the bot to the channel you set it up to go to, and show all text in that chat in blue in your Crea chat.

To type a message to Twitch chat, press enter like you normally would to use the Chat in Crea, then type '/t ' followed by your message. (Like this '/t Welcome!!!', but obviously without the quote marks).




Known bugs and the Todo list:
Bugs:
* The bot will occassionally fail to connect, this can be identified as it will say 'closing link' in the Crea chat. Simply go back to the main menu, and start the world again to fix this.

* While the game is paused, the chat won't update, and upon unpausing, only the last line of chat will take effect.

Todo
* Move the settings to a place that's easier to deal with.
11 Comments
Baxter900  [author] 20 Jan, 2018 @ 9:10pm 
Hmm, weird. I haven't tested this in a while so it's possible it's broken. Can I get your log?
Archer 14 Jan, 2018 @ 8:40pm 
hey i seem to be having issues as the other person was, with system commands not working for /t and chat won't show up, i have everything configured i believe.
Baxter900  [author] 6 Jun, 2016 @ 2:11pm 
Well, umm, good I guess...? Anyway enjoy!!!
GodTech 6 Jun, 2016 @ 12:46pm 
You make me Not want to kill myself.:yazdsmile:
Not Reese 12 Aug, 2015 @ 5:24pm 
Thanks! :D
Baxter900  [author] 12 Aug, 2015 @ 1:02pm 
Alright, fixed it Saukawolf!
Not Reese 1 Aug, 2015 @ 10:28pm 
Thanks! I'll try fixing that when I get a chance. :D
Baxter900  [author] 1 Aug, 2015 @ 8:15pm 
Alright, well, there's both a good part of this, and a bad parts. The good part is, the problem is a super easy fix. The bad part is, I'm in Hawaii right now without my computer, so, I can't fix it right now.

What I can do is telling you how to fix it if you don't want to wait.

So to fix it, you'll first need to browse to the folder where the file is. It looks like your on a mac, so your file will be: /Users/reesecoulter/Library/Application Support/Steam/steamapps/workshop/content/280520/396860594/twitch_chat/irctk_master/irctk/bot.py

You can press cmd+shift+g in the finder, then paste that in to get there faster (quick tip if you didn't know it). Open that bot.py file, then at the top, there should be a line which says "from twitch_interact.irctk_master.irctk.logging import create_logger". Replace "twitch_interact" with "twitch_chat" there, and if there are any other cases of it in the file, then in those places too.

Anyway, hope this helps!
Baxter900  [author] 31 Jul, 2015 @ 11:44am 
Hmm, sounds like the mod isn't being loaded at all, or is crashing. Could you give me your crea.log file possibly? (Easiest way is to just post the contents of it on pastebin.com)

It might also be that you didn't add the mod to your world. So also try making a brand new world and see if that works.