

This API only purpose to connect the specified twitch chat to the game and let the mod developers the power to create their own commands and execution methods to do something in the game!
By itself this mod doesn't do too much, but if you want to test if its working, after you installed it run the game and open your twitch chat and write !ping into the chat. If you see a response in your game console liek this " EXECUTING PING..." then your all done and the plugin is working! :)
To use this plugin as an API, first import the TwitchIntegrationAPI.dll file into your project as reference (just like the Assembly),
then write the following line before your BaseUnityPlugin class

After that, create a variable to store the API for later use like this

In the Awake function get the instance of the Base plugin and give it to the already created variable

Thats it, now your mod depends on the TwitchIntegrationAPI
To create a new command and register it into the twitch api, first you have to create a new class and inherit it from the Command class like this

After that the class requires you to create a constructor like the in the picture and an override method Execute method.
If you don't want to specify a name later on when you create a new instance of this class, then you could change the constructor to look like this

The command name is not key sensitive!
You could write your own processing method inside the Execute method!
The args here contains any other parameters then the command name itself (for example: !HELLO szaki
In this case the command name is hello the parameters are szaki)\
To register your command go back to your BaseUnityPlugin where in this example we specified the api and add the following line

Thats it, now you can register as many command as you want and my API handles the rest. :)
If you have any suggestion or question about it, heres my discord: szkristof97 (SZAKI)