WIP
This commit is contained in:
parent
bee6a97f28
commit
bddbdc8cb4
@ -40,7 +40,7 @@
|
|||||||
message = event.getMessage();
|
message = event.getMessage();
|
||||||
tags = event.getTags();
|
tags = event.getTags();
|
||||||
if(message.indexOf('!')!=0)
|
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) {
|
$.bind('command', function(event) {
|
||||||
@ -53,15 +53,15 @@
|
|||||||
if (!action) {
|
if (!action) {
|
||||||
$.say($.whisperPrefix(sender) + $.lang.get('ew.help', ' Use "!ew [rain | firework | volcano | bomb | explosion] emote" to render emotes.'));
|
$.say($.whisperPrefix(sender) + $.lang.get('ew.help', ' Use "!ew [rain | firework | volcano | bomb | explosion] emote" to render emotes.'));
|
||||||
} else if (action.equalsIgnoreCase('rain')) {
|
} 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')) {
|
} 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')) {
|
} 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')) {
|
} 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')) {
|
} 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 {
|
} else {
|
||||||
$.say($.whisperPrefix(sender) + $.lang.get('ew.help', ' Use "!ew [rain | firework | volcano | bomb | explosion] emote" to render emotes.'));
|
$.say($.whisperPrefix(sender) + $.lang.get('ew.help', ' Use "!ew [rain | firework | volcano | bomb | explosion] emote" to render emotes.'));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user