The /me command


#1

Hello,

I want to suggest an option for broadcasters to enable/disable the usage of the /me command in their channel.

Until then, is there a way to block the /me command? Or is it possible to somehow detect it and have a bot take action when someone uses it?

With kind regards,
Ben


#2

Yes, depends on your library.

Suggestions can be sent to the Twitch Uservoice

https://twitch.uservoice.com/


#3

Until then, is there a way to block the /me command? Or is it possible to somehow detect it and have a bot take action when someone uses it?

In your custom chat client, you could block it, but there is no way (that I know of) to block it in the regular Twitch chat (web/app). You can, however, detect a /me and have your bot warn the user or whatever you deem appropriate. While regular chat messages are being sent as regular PRIVMSG command, messages sent via /me will be delivered as CTCP ACTION command.


#4

Thank you guys!


#5

You could try adding this string as a ban word to a bot.

ACTION

Edit: I noticed the character didn’t print outside of the edit box…
Unicode character
\x{1} - soh start of heading

this regex would match an emote text from ‘/me’

\(x{1}ACTION)(.*)(\x{1})


closed #6

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