I'm trying to make a chat filter, so if someone says a slur they get muted.
I have this for the onchat event
on chat:
set {_check} to uncolored message
replace all " " in {_check} with ""
if {_check} contains {-ChatNoList::*}:
cancel event
and for the other part I have
on load:
set {-ChatNWords::*} to "words" #obviously not going to put them in here
set {-ChatRWords::*} to "words"
set {-ChatFWords::*} to "words" #no the f word isnt f**k
set {-ChatNoList::*} to "StarterWord"
add {-ChatRWords::*} to {-ChatNoList::*}
When I do it like this it doesnt work for the on chat, it doesnt pick it up
But if I do it like this, it does
set {-ChatNoList::*} to "Word1","Word2" and "Word3" #etc
I even tried
loop {-ChatRWords::*}:
add loop-value to {-ChatNoList::*}
But that doesnt work either