Github: https://github.com/gagehenderson/Twitch-Plays-Love2d
Example of it in action: https://www.twitch.tv/callgage/clip/Inq ... kDy0aKD1Q_

(On the left is all app logging and communication with the irc. On the right lists all currently pressed keys & their remaining durations).
Only has very simple functionality right now, you can basically define a command, what key that command is associated with and how long it should be pressed for. You can organize these into configs for different games, right now I only have one for trackmania, here's a snipppet:
Code: Select all
return {
["!holdgas"] = {
key = GAS_KEY,
duration = HOLD
},
["!releasegas"] = {
key = GAS_KEY,
release = true
},
["!tinygas"] = {
key = GAS_KEY,
duration = TINY
},
["!shortgas"] = {
key = GAS_KEY,
duration = SHORT
},
["!mediumgas"] = {
key = GAS_KEY,
duration = MEDIUM
},
-- ...
In the future I may add some more functionality like mouse input - Also the ability to pause / resume input simulation - And maybe even a stream overlay to tell the chat whether or not they are currently able to play.
I also learned that for very fast chats, messages tend to come in batches, and the input can appear very jittery or like it is only working for a few moments at a time as each batch of messages comes in (instead of a steady stream), so I may also try to account for that.
Tested this out on my small stream with a few people and it was pretty fun! I might try to get in touch with some larger streamers and see if they'd want to try it out. If anyone here ends up using it lmk I would love to see it in action! Instructions for setting it up are in the readme.