AshciR / group-chat-digest

0 stars 0 forks source link

Prevent spoilers messages #67

Open AshciR opened 5 months ago

AshciR commented 5 months ago

/gist may spoil events for users b/c hidden contents are summarized.

AshciR commented 4 months ago

Spoiler message properties

(MessageEntity(length=5, offset=8, type=<MessageEntityType.SPOILER>), MessageEntity(length=4, offset=22, type=<MessageEntityType.SPOILER>), MessageEntity(length=4, offset=40, type=<MessageEntityType.SPOILER>))
AshciR commented 4 months ago

Handling Spoiler Messages

Experiment 1:

Send redacted messages to the bot and determine how it responds to these messages.

"Alrick Brown: I am [redacted] person [redacted]"

Experiment 2:

Send full message to the bot, but let the bot know when messages contain spoiler content.

{
    "Alrick Brown: I am a person who lives",
    "spoilers":[
        {
            "start": 0,
            "length": 5
        },
        {
            "start": 7,
            "length": 3
        } 
    ]
}
AshciR commented 3 weeks ago

Decided on not saving messages with spoilers in them