tripleee / sloshy

Sloshy the Thawman, a simple chatbot to keep rooms alive on Stack Overflow / Stack Exchange
6 stars 11 forks source link

Sloshy doesn't escape square braces present in chatroom names #27

Closed HenryEcker closed 2 years ago

HenryEcker commented 2 years ago

This is a really minor issue, but Chatrooms allow square braces [ ] in the title of the room, e.g. [dev] SpotDetector.

To correctly display this in a chat message the braces need escaped:

[\[dev\] SpotDetector](https://chat.stackoverflow.com/rooms/244392/dev-spotdetector)

This, however, is not currently happening so status messages are being rendered as:

[[dev] SpotDetector](https://chat.stackoverflow.com/transcript/244392): latest activity 2022-05-03 15:00:00 (2 days, 11:51:09 hours ago)

Link to Message | Link to Message History (markdown)

tripleee commented 2 years ago

Thanks for the bug report! I should have tested the PR more properly before deploying it.