Crea
评价数不足
Twitch Chat Plugin
   
奖励
收藏
已收藏
取消收藏
标签: Interface
文件大小
发表于
更新日期
108.963 KB
2015 年 2 月 21 日 下午 8:02
2016 年 6 月 30 日 下午 2:15
5 项改动说明 ( 查看 )

订阅以下载
Twitch Chat Plugin

描述
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 条留言
Baxter900  [作者] 2018 年 1 月 20 日 下午 9:10 
Hmm, weird. I haven't tested this in a while so it's possible it's broken. Can I get your log?
Archer 2018 年 1 月 14 日 下午 8:40 
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  [作者] 2016 年 6 月 6 日 下午 2:11 
Well, umm, good I guess...? Anyway enjoy!!!
GodTech 2016 年 6 月 6 日 下午 12:46 
You make me Not want to kill myself.:yazdsmile:
Not Reese 2015 年 8 月 12 日 下午 5:24 
Thanks! :D
Baxter900  [作者] 2015 年 8 月 12 日 下午 1:02 
Alright, fixed it Saukawolf!
Not Reese 2015 年 8 月 1 日 下午 10:28 
Thanks! I'll try fixing that when I get a chance. :D
Baxter900  [作者] 2015 年 8 月 1 日 下午 8:15 
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!
Not Reese 2015 年 8 月 1 日 下午 1:12 
Baxter900  [作者] 2015 年 7 月 31 日 上午 11:44 
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.