Skip to content

Commit

Permalink
feat: added config
Browse files Browse the repository at this point in the history
  • Loading branch information
Kek5chen committed May 14, 2022
1 parent f7bbb3d commit 15c3ddf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-
Expand Down Expand Up @@ -32,4 +32,5 @@ Installation

Config Setup
-
There is no config at this point in development as we are still in a prototyping stage.
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`
8 changes: 7 additions & 1 deletion js/bars.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*==================================================== CONFIG ========================================================*/

let TWITCH_USERNAME = 'your_twitch_username';

/*===================================================================================================================*/

let voterBars = document.querySelectorAll('.voter-bar');
let summaryBars = document.querySelectorAll('.summary-bar');

Expand All @@ -9,7 +15,7 @@ const client = new tmi.Client({
secure: true,
reconnect: true
},
channels: ['username']
channels: [TWITCH_USERNAME]
});

function lerp(start, end, amt) {
Expand Down

0 comments on commit 15c3ddf

Please sign in to comment.