This commit is contained in:
choelzl 2022-02-23 08:43:18 +01:00
parent 43e4169b23
commit a6b3c879ea
Signed by: sora
GPG Key ID: A362EA0491E2EEA0

View File

@ -42,7 +42,7 @@
if (command.equalsIgnoreCase('overlay')) { if (command.equalsIgnoreCase('overlay')) {
if (!action) { if (!action) {
$.say($.whisperPrefix(sender) + $.lang.get('customOverlay.help', ' Use "!overlay [follow | subscribe | donation | timer] value" to set overlay data.')); $.say($.whisperPrefix(sender) + $.lang.get('ew.help', ' Use "!ew [follow | subscribe | donation | timer] value" to set overlay data.'));
} else if (action.equalsIgnoreCase('follow')) { } else if (action.equalsIgnoreCase('follow')) {
sendData(action, value); sendData(action, value);
} else if (action.equalsIgnoreCase('subscribe')) { } else if (action.equalsIgnoreCase('subscribe')) {
@ -52,7 +52,7 @@
} else if (action.equalsIgnoreCase('timer')) { } else if (action.equalsIgnoreCase('timer')) {
sendData(action, new Date(Date.now().getTime()+value*1000*60)); sendData(action, new Date(Date.now().getTime()+value*1000*60));
} else { } else {
$.say($.whisperPrefix(sender) + $.lang.get('customOverlay.help')); $.say($.whisperPrefix(sender) + $.lang.get('ew.help'));
} }
} }
}); });
@ -65,12 +65,9 @@
}); });
$.bind('initReady', function() { $.bind('initReady', function() {
$.registerChatCommand('./custom/custom/customOverlay.js', 'overlay'); $.registerChatCommand('./custom/custom/customOverlay.js', 'ew');
$.registerChatSubcommand('overlay', 'follow', 2); $.registerChatSubcommand('ew', 'follow', 2);
$.registerChatSubcommand('overlay', 'subscribe', 2);
$.registerChatSubcommand('overlay', 'donation', 2);
$.registerChatSubcommand('overlay', 'timer', 2);
}); });
})(); })();