San_So
December 25, 2021, 2:08pm
1
Please help me about [ Spam Protection ].
I have a channel who can chat in English, but someone types chatters in Japanese.
So I want to automatically delete Japanese chat.
example1 :
Set a specific Japanese character string.
Over 5 count of specific characters, then delete the comment.
Custom message: " Please write in English."
Example2 as VBA code :
badChr = “あいうえおかきくけこたちつてとなにぬねのわをん”
chatStr= “こんにちは!今日はいい日ですね!”
if InStr(chatStr, badChr) >= 5 then
DELETE_CHAT
CustomMessage = " Please write in English."
end if
It is what I want to do.Can I make this filter on NightBot?
Please help me. Thanks.
Emily
December 26, 2021, 10:11am
2
Hey @San_So !
We’ve already answered this question before, please use the search bar:
Hey @twistcd !
Unfortunately we can’t detect the language of a message, however, if these are non-latin characters, you can filter them out using the Blacklist filter with RegEx, put this on a line of the filter:
/[^\x00-\x7F]+/
You won’t be able to set up a custom message.
1 Like
San_So
December 26, 2021, 10:12pm
3
Thank you Emily!
OK, I will try to that! Thank you!
system
Closed
January 9, 2022, 10:13pm
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.