diff --git a/www/boto.js b/www/boto.js index 2810cf6..12c6efd 100644 --- a/www/boto.js +++ b/www/boto.js @@ -27,14 +27,16 @@ client.on('message', (wat, tags, message, self) => { if (self) return; const { username } = tags; if (username.toLowerCase() === channel.toLowerCase()) { - if (message === '!start-count') { + if (message === '!start') { listeningForCount = true; - } else if (message === '!end-count') { + } + else if (message === '!end') { listeningForCount = false; // say count out loud. const sayCount = new SpeechSynthesisUtterance(Object.keys(users).length); window.speechSynthesis.speak(sayCount); - } else if (message === '!clear-count') { + } + else if (message === '!clear') { countElement.textContent = 'Waiting for count...'; usersElement.textContent = ''; users = {}; diff --git a/www/index.html b/www/index.html index 7de8a0e..36e75f7 100644 --- a/www/index.html +++ b/www/index.html @@ -12,7 +12,7 @@

Type 1 in the chat!

(broadcaster only)
- !start-count | !end-count | !clear-count + !start | !end | !clear