From bddbdc8cb4f9b9d673e315e5f863b075b1bb2a91 Mon Sep 17 00:00:00 2001 From: choelzl Date: Wed, 23 Feb 2022 20:59:45 +0100 Subject: [PATCH] WIP --- twitch/customEmoteWall.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/twitch/customEmoteWall.js b/twitch/customEmoteWall.js index 20847ee..c437c7f 100644 --- a/twitch/customEmoteWall.js +++ b/twitch/customEmoteWall.js @@ -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.')); }