Allowing others (aka bots) to use /twitchbot_reject

Heya,

So the AutoMod feature was added, but I was sad to see it not really having 3rd party integration potential. I suggest allowing any mod to use the command that is currently twitchbot_reject (in the process, renaming it to /reject_message ?) like so: /reject_message <message_id>

This way, custom bots could flag messages for moderator attention instead of just timing them out. The way I would assume it would work is that it would temporarily remove the message, similar to how chat delay works, and wait for a moderator to allow or deny the message.

5 Likes

Although this isn’t documented yet, it is available on our API (version 5).

To Deny:

POST api.twitch.tv/kraken/chat/twitchbot/deny

{
  "msg_id" : "foobar-foobar-foobar-foobar"
}

To allow a message:
POST api.twitch.tv/kraken/chat/twitchbot/approve

{
  "msg_id" : "foobar-foobar-foobar-foobar"
}
3 Likes

What about the initial reject/flag? Thats the most useful part. The APIs you used can be used to whitelist, but not to blacklist

I’m not sure I follow. The initial reject/flag is generated only when a message doesn’t pass our systems. We don’t allow users to pre-blacklist things yet, so there isn’t any APIs to expose to you (yet).

In the case that we do allow channels to blacklist or whitelist things using a list, we will add an API to do so.

1 Like

Because of the “your message was held” notice, the chat system needs to make the decision before sending the message to anyone (e.g. custom bots). In order to let external systems make the hold/allow decision, it would probably need to be a new, custom, separate API designed for low latency, as it would be on the critical path for chat.

@CBenni means that you have us a way to approve reject. But no way to know there is something to approve or reject @xangold

I think I expressed myself very unclearly. Maybe I can rephrase my OP.

I do not seek to automatically approve or decline messages, I seek to have an alternative to /timeout that instead flags the message for moderator attention.

I am aware that this interferes with the current way things are handled, since 3rd parties can only flag messages that have already been sent out, while twitchbot acts as middleware before messages are sent out. Instead, you would need some kind of CLEARCHAT-esque command that removes the message from the chat of users until it is accepted (or removed permanently)

It was just a thought that would make this feature applicable to all channels, instead of just a small subset of channels that dont use a proper bot yet.

Allowing moderators to “untimeout” messages that were removed during chat delay would allow for this.

@xangold what scope do you need for those POSTs?

A command like /review or /flag would be fantastic. Basically “have a human mod approve this message.”
It would work just like /timeout, with the clients hiding the message when getting a /review, but then showing the message again when a mod approves it.

With this you could create filters with false-positives, which is something you can’t currently do.
This opens up for some nice custom things like;

  1. Spoiler filter. (See this reddit thread why this currently is not feasible)
  2. “Bad user” detection (i.e. user is in many chats, has done X bad things in the last Y time - We’re not 100% sure, approve or deny this likely questionable message in chat?)
    etc.
1 Like

If a message is flagged, does anything come through IRC at all? Or is this all done through the web interface?

It only comes through once it gets allowed. Messages that get denied or not noticed at all get dropped and never reach the IRC interface.

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