Skip to content

Commit

Permalink
removed convert to milliseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
teklynk committed Dec 1, 2021
1 parent 1bee615 commit 9d947c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/farts.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $(document).ready(function () {

if (modsonly === 'true' && (user.mod || user.username === channelName)) {
playSound(); //mods only
} else if (modsonly === 'false' || user.username === channelName) {
} else if (modsonly === 'false') {
playSound(); //everyone
}

Expand Down
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ <h1 class="h3 pt-4 pl-lg-4 text-center">Twitch Chat Farts Bot</h1>
document.getElementById("generate_button").addEventListener("click", function (e) {
let mainAccount = document.getElementById("mainAccount").value;
let coolDown = document.getElementById("coolDown").value;
coolDown = coolDown + '000'; // convert seconds to milliseconds
let modsonly = document.getElementById("modsonly").checked;
if (!mainAccount) {
alert('Twitch username is not set');
Expand Down

0 comments on commit 9d947c2

Please sign in to comment.