WIP
This commit is contained in:
parent
43e4169b23
commit
a6b3c879ea
@ -42,7 +42,7 @@
|
||||
|
||||
if (command.equalsIgnoreCase('overlay')) {
|
||||
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')) {
|
||||
sendData(action, value);
|
||||
} else if (action.equalsIgnoreCase('subscribe')) {
|
||||
@ -52,7 +52,7 @@
|
||||
} else if (action.equalsIgnoreCase('timer')) {
|
||||
sendData(action, new Date(Date.now().getTime()+value*1000*60));
|
||||
} else {
|
||||
$.say($.whisperPrefix(sender) + $.lang.get('customOverlay.help'));
|
||||
$.say($.whisperPrefix(sender) + $.lang.get('ew.help'));
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -65,12 +65,9 @@
|
||||
});
|
||||
|
||||
$.bind('initReady', function() {
|
||||
$.registerChatCommand('./custom/custom/customOverlay.js', 'overlay');
|
||||
$.registerChatCommand('./custom/custom/customOverlay.js', 'ew');
|
||||
|
||||
$.registerChatSubcommand('overlay', 'follow', 2);
|
||||
$.registerChatSubcommand('overlay', 'subscribe', 2);
|
||||
$.registerChatSubcommand('overlay', 'donation', 2);
|
||||
$.registerChatSubcommand('overlay', 'timer', 2);
|
||||
$.registerChatSubcommand('ew', 'follow', 2);
|
||||
});
|
||||
|
||||
})();
|
Loading…
x
Reference in New Issue
Block a user