I'm trying to code a bot for Twitch. The intention is to interpret chat messages and use that to rebind controller inputs on a virtual gamepad. For example, 'swap "X" and "Y"'.
Twitch provide a node.js compatible API for their Twitch chat, so that's what the bot is currently written in. I've also found a few node modules that will read controller inputs (and an obsolete one that can create virtual controllers).
I'm an inexperienced hobby developer with no experience with drivers. For example I don't yet know what words like "bus" mean. I see there are a lot of different of different github projects for ViGEm and I'm finding the language used to describe them somewhat indecipherable.
Could someone give me a few nudges in the right direction here please? Is there a way I can code something in Node that will cause ViGEm to press buttons on a virtual controller?