Mods / Twitch Integration

Category: #Cheat
Author: kuky7cz
Side: Both
Created: Apr 4th at 3:34 AM
Last modified: Apr 15th at 3:02 AM
Downloads: 278
Follow Unfollow 15

Latest file for v1.19.7:
twitch_integration_0.3.0.zip 1-click install


This mod interacts with Twitch chat.
Any valid command in the chat will trigger the voting.
Voting can be started once after a certain time and for a certain time according to the values in the settings.
Each user in the chat has only one immutable vote during active voting.
After the time has passed, the event with the most unique votes will start in the game.

 

Added new ingame chat events.
/hp+   Increases health by +1 hp.
/hp-    Reduces health by -1 hp.


Config:
\AppData\Roaming\VintagestoryData\ModConfig\twitch_integration\VSMTI1.json

Events:
You can add or remove event in config.
Empty "" deactivate commands and events.
Format: "<Twitch chat>": "<ingame chat>",

Examples in default.

  "events": {
    "!hp+": "/hp+",
    "!hp-": "/hp-",
    "!kill": "/kill",
    "!teleport": "/tp 0 200 0",
    "!morning": "/time set morning",
    "!night": "/time set night",
    "!december": "/time setmonth dec",
    "!stoprain": "/weather stoprain",
    "!storm": "/weather setw storm",
    "!lightbreeze": "/weather setw lightbreeze",
    "!chicken": "/entity spawn chicken-hen 3",
    "!wolf": "/entity spawn wolf-male 3"
  }

Config connected to Twitch:
1) Register the application in: https://dev.twitch.tv/console
2) Get your passworld here: https://twitchapps.com/tmi/
3) Setup variables: username, chanel, password is "oauth:123...".

 

I am working on updates.
TODO:
Easier connection to Twitch.
People from chat in game as animals.


Any support welcome and will invest in development.
IBAN: CZ09 0800 0000 0064 3890 9339
BIC/SWIFT: GIBACZPX
Variable symbol: 2404040001
+Message: your name at thanks

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v0.3.0 113 Apr 15th at 3:02 AM Show twitch_integration_0.3.0.zip Install now
v0.2.0 80 Apr 6th at 11:47 PM Show twitch_integration_0.2.0.zip Install now
v0.1.1 85 Apr 4th at 4:04 AM Show twitch_integration_0.1.1.zip Install now

5 Comments (oldest first | newest first)

💬 BlackAxolotl, Jun 10th at 11:18 PM

Loving the idea for the mod but the setup to get the mod connected is rather convoluted. Such as what does the username variable correspond to, and is the channel variable the name of your channel? Why do you have to register an application with the Twitch dev stuff? If possible, it would be better to simplify the method of connecting the channel to the mod or have a video guide for what it takes to connect the mod to a channel. Other than that it's looking good

💬 kuky7czAuthor, Apr 10th at 4:29 PM

Shinji170981
Thanks for the suggestion.

AzuliBluespots
I plan to add an option to specify the number of hp

I am currently planning to do a major refactoring of the code and separate Twitch events and Ingame events. It will be possible to create many custom events that will trigger a server side command.

💬 Shinji170981, Apr 7th at 1:34 PM

You could add things like decreasing satiety or temporal stability. Also maybe effects like bleeding/poison or temporary immortality.

💬 AzuliBluespots, Apr 5th at 9:29 PM

Oh man, this would be a pain XD

💬 Ribsin, Apr 4th at 3:55 PM

I like the idea of this want events are you working toward allowing chat to trigger?

(edit comment delete)