StreamUpdate in an OpenPlanet plugin for Trackmania 2020 that changes your Twitch stream title automatically with the map you're playing.
Put the files in your OpenPlanet directory which is located under:
C:\Users\<username>\OpenplanetNext\Scripts\StreamUpdate
You will also need to create a Twitch application so that you can have a ClientID as well as a OAuth token.
Note: When you are creating your application, please put https://localhost in the OAuth redirect URL field.
You'll need to update the plugin settings tab under the Stream Update then Parameters tab with some informations:
ClientIDthat you can get from you Application Console.Bearerthat you can find it with this link (replace the<OAUTH_REDIRECT_URL>withhttps://localhostif that's what you've done earlier) and once you've approved the application, you'll find the Bearer token in the URL.Broadcaster IDthat you can find from here by putting your channel name.
Once properly configured, just launch Trackmania and it should sync the title from your stream to the plugin automatically.
You should find a tab named Stream Update in your settings from where you can configure your stream title. There is an optionnal {map} tag that you can place anywhere in your title and it will be replaced with the map you're playing. If you're not playing any map, it will be replaced with empty text.
You can let the plugin run by itself but you can also force the update with the menu under Stream Update named Update stream informations.
You can also check the stream title with the View stream informations sub-menu.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.