This is the template I created for my Twitch Subathon Countdowns
A subathon timer that increases when someone subscribes, donates money, donates bits or purchases streamloots chests.
After cloning this repository you'll have to edit the "config.js" file with any plain text editor, then change the value of the variables according to what you want:
To get the token you'll have to go to the API settings tab of your Streamlabs dashboard then click on API Tokens, copy your socket API token and finally paste the code on the "streamlabs_token" variable in the "config.js" file.
To get the token you'll have to go to your StreamElements channels dashboard, then click on show secrets, copy the Overlay token and paste the code on the "streamelements_token" variable in the "config.js" file.
To get the token you'll have to go to your Streamloots creator dashboard, then to alerts & widgets, then go to alerts, then copy the last part of the alerts url and finally paste the code on the "streamloots_token" variable in the "config.js" file.
You can set the initial time of the timer by setting the hours, minutes and seconds to be added when the timer is created.
Change the other values to set the amount of seconds that will be added for the subscriptions, donations... And the minimum donation amounts to trigger the countdown increase.
To add it to OBS you just have to drag the "index.html" file to the sources section or add a browser source that points to the "index.html" file.