Lethal Company
You are viewing a potentially older version of this package. View Latest Version
Install

Details

Date Uploaded
2 weeks ago
Downloads
158
Size
163KB
Dependency string
ZetaArcade-SimpleTwitchChat-0.0.2

Simple Twitch Chat

This mod lets you see your Twitch chat inside the in-game text chat! Currently, the mod requires all clients to have it due to the networking stuff. In the future i will likely client a seperate clientsided version of this mod that just has the chat stuff without any redeem support.
This mod was built for v73 of Lethal, and whilst I haven't tested it in v80, it might work on that version too, though in the future when I add more functionality tied to networking there is a good chance it will be locked to 73+ only until i update everything.

Simple-Twitch-Chat.gif

Current Features!

  • See your Twitch chat in-game!! They showup in your text chat!
  • Option to network your chat to the entire server, so your whole lobby can see the messages too!
  • Cooldown/queue system on messages, to improve stability for VERY large streams with lots of messages coming in at once!
  • Customise how chat is displayed, such as the color for the chat/name, whether to prefix it with [TTV] or whatever you want instead etc.
  • Highlighted chat messages will show as a popup instead of a normal chat message, with a customisable duration and an option to turn it off!
  • Options to hide chat messages from Bots, the Broadcaster themselves, Moderators, and restrict it to sub-only mode!
  • Blacklist option to ignore chat messages from Blacklisted users. You can use "StreamWeasels" to get the user-ID from a Twitch Username for this.
  • Whitelist option for the Blacklist, to instead only make specified users able to send their messages through!
  • A few hardcoded Redeem integrations, that let you tie a Twitch chat Redeem (with a message) to these events:

-Force opening a gift when next picked up, with LethalPresents in mind! Also detects when you open Gift Mimics
-Force rolling an Emergency Dice when next picked up, integration with Emergency Dice Updated
-Forcing a Moon change, either based on the name of the Moon or the name of the Weather that the user requests!

  • Debug mode to gather some useful info, such as user-IDs and Redeem IDs!

Planned Features!

  • More Redeem integrations, so viewers can do Redeems to trigger special toggleable in-game events, including:

-A Route Random Redeem
-Forcing a suit change, possibly via SuitsTerminal integration
-Changing the Whiteboard text to whatever they specify, integration for Whiteboard
-Forcing a TTS message to be spoken from the host, integration for MelaniesVoice
-Maybe a way for chat to send TTS inside of the ship?? Like a lil yapper furniture/scrap?
-Maybe spawning enemies, or even just killing the player??

  • More robust reading of chat messages when doing the Moon/Weather change to decrease the chance it fails when a user spells it wrong or something
  • Support for WeatherTweaks combined/progressing weathers for the Weather Redeem
  • Possibly splitting the Redeem related stuff into it's own seperate mod, and then keeping the chat stuff clientsided

Setup

  • Install the mod, boot up, and a config will generate!
  • TwitchChatAPI handles connecting your account to Twitch, so if you have any issues regarding that then check out their mod page, but it should be as simple as clicking the Twitch icon on the main menu (You may also need TwitchChatAPI LethalCompany for it show???)
  • You can test if chat is working without Broadcasting on Twitch, as chat messages will still come through from an offline channel. Simply send messages into your offline channel chat to see them come through!
  • You can enable "Print debug info" and "Print redeem info" in the config to get a bunch of useful data on incoming messages, such as the User-IDs (Which you can then use for the Whitelist/Blacklist). This can be especially useful if you use any chatbots that don't get flagged by the "Hide clankers" option, since all that is doing is looking for the Bot badge on the messages.
  • Alternatively, you can get User-ID's using this webtool by StreamWeasels.
  • For setting up Redeems, make sure your Twitch Redeem messages allow the user to send a message, as Redeems without a message do not get picked up by this mod.
  • To hook the Redeems up, use the debug settings to get the Redeem IDs (By using the Redeems useful as the Channel owner), and paste them into the config with whatever Redeem you want to hook into
  • Note that the Weather/Moon change redeems are not case sensitive and can ignore spaces, but can't handle spelling mistakes well or other random symbols.
  • Also note that only normal weathers can be found by the mod currently, not WeatherTweaks Combined/Progressing weathers!

Compat

  • Works fine with NiceChat!! c:

Disclaimers

  • This mod lacks any kind of failsafes for what kind of crap is put in your Twitch chat. If you don't have sufficient moderation/anti-spam related measures on your Twitch chat, whatever messages will get sent through to the in-game chat (Which can be problematic, as you can't just "delete" such chat messages from the in-game chat, they'll be there until you send more to make it scroll up.). However, this mod does come with a Blacklist/Whitelist option, as well as options for making it Sub-only, blacklisting bots etc. which could help prevent issues.

Credits

  • Zehs / For creating TwitchChatAPI
  • alterego / His streams use a private mod with very similar functionality that I based mine off of visually. However, due to that mod being private, I coded this entirely independently, without any copied code (I literally don't have access to the code to copy lol). Check out his streams!!!
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.