colombia-dev / leonel

Director de inteligencia artificial - colombia.dev
MIT License
50 stars 24 forks source link

Leonel no soporta rich text #120

Open buritica opened 4 years ago

buritica commented 4 years ago

El rich text formatter nuevo del cliente de slack soporta pegar texto enriquecido, y esto esta rompiendo las invitaciones de leonel.

cuando se pega un correo con link, leonel reporta el siguente error:


bot:main not caught {
  "client_msg_id": "13995de0-13f7-4d0d-9f3e-3daeeb35bf27",
  "suppress_notification": false,
  "type": "message",
  "text": "invite a <mailto:XXXX@gmail.com|XXXX@gmail.com>",
  "user": "REDACTED",
  "team": "REDACTED",
  "blocks": [
    {
      "type": "rich_text",
      "block_id": "OdZ/i",
      "elements": [
        {
          "type": "rich_text_section",
          "elements": [
            {
              "type": "text",
              "text": "invite a "
            },
            {
              "type": "link",
              "url": "mailto:XXXX@gmail.com",
              "text": "XXXX@gmail.com"
            }
          ]
        }
      ]
    }
  ],
  "source_team": "REDACTED",
  "user_team": "REDACTED",
  "channel": "REDACTED",
  "event_ts": "1588706842.001100",
  "ts": "1588706842.001100",
  "event": "direct_message",
  "match": [
    "invite a <mailto:XXXX@gmail.com|XXXX@gmail.com>"
  ]
}````