serokell / tzbot

Timezone bot for Slack
Mozilla Public License 2.0
7 stars 2 forks source link

[#119] Support link blocks #120

Closed dcastro closed 1 year ago

dcastro commented 1 year ago

Description

Problem: If a user types a message with a link, the link text will be ignored by the MessageBlock processor:

For example, in the message below, extractPieces will return ["Hey let's meet at ", "tomorrow?"].

Hey, let's meet at [10:30](link to google calendar here) tomorrow?

Solution: Parse blocks of type link, and collate the link text with adjacent text-like blocks.

image

Related issue(s)

Fixed #119

:white_check_mark: Checklist for your Pull Request

Related changes (conditional)

Stylistic guide (mandatory)

✓ Release Checklist