diff --git a/README.md b/README.md index e05473a..6026925 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Twitch Votes = A stylish voting tool for streamers and viewers. -![Version](https://img.shields.io/badge/Version-0.4.0-yellow) +![Version](https://img.shields.io/badge/Version-1.0.0-green) Previews - @@ -32,4 +32,5 @@ Installation Config Setup - -There is no config at this point in development as we are still in a prototyping stage. \ No newline at end of file +1. Enter the folder `js` and open the file `bars.js` inside the cloned repository folder. +2. Edit your twitch username into line 3 where it says `your_twitch_username` \ No newline at end of file diff --git a/js/bars.js b/js/bars.js index 9064bc3..047534d 100644 --- a/js/bars.js +++ b/js/bars.js @@ -1,3 +1,9 @@ +/*==================================================== CONFIG ========================================================*/ + +let TWITCH_USERNAME = 'your_twitch_username'; + +/*===================================================================================================================*/ + let voterBars = document.querySelectorAll('.voter-bar'); let summaryBars = document.querySelectorAll('.summary-bar'); @@ -9,7 +15,7 @@ const client = new tmi.Client({ secure: true, reconnect: true }, - channels: ['username'] + channels: [TWITCH_USERNAME] }); function lerp(start, end, amt) {