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); });