Count specific characters and remove comments

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.

Hey @San_So!

We’ve already answered this question before, please use the search bar:

You won’t be able to set up a custom message.

1 Like

Thank you Emily!

OK, I will try to that! Thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.