From 99ca610a7e68c560fcb7dd6a79159e39468ef29d Mon Sep 17 00:00:00 2001 From: choelzl Date: Sun, 6 Feb 2022 19:59:23 +0100 Subject: [PATCH] WIP --- twitch/customAlerts.js | 5 ++--- twitch/customOverlay.js | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/twitch/customAlerts.js b/twitch/customAlerts.js index 9a6722a..d451299 100644 --- a/twitch/customAlerts.js +++ b/twitch/customAlerts.js @@ -16,11 +16,10 @@ }); $.bind('initReady', function() { + $.registerChatCommand('./custom/custom/customAlerts.js', 'calert'); $.registerChatSubcommand('calert', 'follow', 2); $.registerChatSubcommand('calert', 'subscribe', 2); $.registerChatSubcommand('calert', 'donation', 2); - - $.registerChatCommand('./custom/custom/customAlerts.js', 'calert', 2); - }); + }); })(); \ No newline at end of file diff --git a/twitch/customOverlay.js b/twitch/customOverlay.js index 826d25c..67271c2 100644 --- a/twitch/customOverlay.js +++ b/twitch/customOverlay.js @@ -13,7 +13,6 @@ const sender = "" + event.getSender().toLowerCase(), command = event.getCommand(), - argsString = "" + event.getArguments().trim(), args = event.getArgs(), action = args[0], value = args[1]; @@ -36,12 +35,12 @@ }); $.bind('initReady', function() { + $.registerChatCommand('./custom/custom/customOverlay.js', 'overlay'); + $.registerChatSubcommand('overlay', 'follow', 2); $.registerChatSubcommand('overlay', 'subscribe', 2); $.registerChatSubcommand('overlay', 'donation', 2); $.registerChatSubcommand('overlay', 'timer', 2); - - $.registerChatCommand('./custom/custom/customOverlay.js', 'overlay', 2); });