case-insensitive commands, ttas vods, start/stop delay support

This commit is contained in:
Chris Ham
2018-11-13 17:17:23 -08:00
parent fd75d11eec
commit 6e36e06ce9
3 changed files with 39 additions and 8 deletions

View File

@@ -474,6 +474,9 @@ const streamInit = (config, twitch) => {
// Ignore messages without a command
if (!key || key.length === 0) return;
// Case-insensitive
key.toLowerCase();
// Check for aliased commands
if (aliases.hasOwnProperty(key)) key = aliases[key];