Kardbord / Kard-bot

A Discord bot destined for greatness
GNU Affero General Public License v3.0
1 stars 0 forks source link

User mentions at the end of a /what-are-the-odds command result in malformed replies #25

Closed Kardbord closed 2 years ago

Kardbord commented 2 years ago

The regex to strip punctuation at the end of a /what-are-the-odds event is a little too overzealous; it also removes the closing angle-bracket (>) from user mentions.

Problem lines are https://github.com/TannerKvarfordt/Kard-bot/blob/8681e729cc34f97c71a0eb0675b258eb2b9beed0/kardbot/whataretheodds.go#L17 https://github.com/TannerKvarfordt/Kard-bot/blob/8681e729cc34f97c71a0eb0675b258eb2b9beed0/kardbot/utils.go#L99