This commit is contained in:
choelzl 2022-02-23 20:59:45 +01:00
parent bee6a97f28
commit bddbdc8cb4
Signed by: sora
GPG Key ID: A362EA0491E2EEA0

View File

@ -40,7 +40,7 @@
message = event.getMessage();
tags = event.getTags();
if(message.indexOf('!')!=0)
sendData('bounce',event.getTags().get('emotes').split('/'), getNoTwitchEmotes(event,message).split(/\s+/))
sendData('bounce',event.getTags().get('emotes').split('/'), getNoTwitchEmotes(event,message).split(' '))
})
$.bind('command', function(event) {
@ -53,15 +53,15 @@
if (!action) {
$.say($.whisperPrefix(sender) + $.lang.get('ew.help', ' Use "!ew [rain | firework | volcano | bomb | explosion] emote" to render emotes.'));
} else if (action.equalsIgnoreCase('rain')) {
sendData('rain',event.getTags().get('emotes').split('/'), getNoTwitchEmotes(event,event.getMessage()).split(/\s+/))
sendData('rain',event.getTags().get('emotes').split('/'), getNoTwitchEmotes(event,event.getMessage()).split(' '))
} else if (action.equalsIgnoreCase('firework')) {
sendData('firework',event.getTags().get('emotes').split('/'), getNoTwitchEmotes(event,event.getMessage()).split(/\s+/))
sendData('firework',event.getTags().get('emotes').split('/'), getNoTwitchEmotes(event,event.getMessage()).split(' '))
} else if (action.equalsIgnoreCase('volcano')) {
sendData('volcano',event.getTags().get('emotes').split('/'), getNoTwitchEmotes(event,event.getMessage()).split(/\s+/))
sendData('volcano',event.getTags().get('emotes').split('/'), getNoTwitchEmotes(event,event.getMessage()).split(' '))
} else if (action.equalsIgnoreCase('bomb')) {
sendData('bomb',event.getTags().get('emotes').split('/'), getNoTwitchEmotes(event,event.getMessage()).split(/\s+/))
sendData('bomb',event.getTags().get('emotes').split('/'), getNoTwitchEmotes(event,event.getMessage()).split(' '))
} else if (action.equalsIgnoreCase('explosion')) {
sendData('explosion',event.getTags().get('emotes').split('/'), getNoTwitchEmotes(event,event.getMessage()).split(/\s+/))
sendData('explosion',event.getTags().get('emotes').split('/'), getNoTwitchEmotes(event,event.getMessage()).split(' '))
} else {
$.say($.whisperPrefix(sender) + $.lang.get('ew.help', ' Use "!ew [rain | firework | volcano | bomb | explosion] emote" to render emotes.'));
}