J-Wass / RLEB

https://www.reddit.com/r/RocketLeagueEsports
2 stars 0 forks source link

ignore emoji requests in !triflairs #114

Closed J-Wass closed 2 years ago

J-Wass commented 2 years ago

Users can do !triflairs add :happy: to add the :happy: flair to the triflair system

But if that user has nitro + emojis enabled, then the bot sees !triflairs add 😀 (note that :happy: has been replaced with the emoji). This causes the emoji code to be stored, and not the literal string ":happy:"

  1. Detect whether a !triflairs user has accidentally send an emoji.
  2. Reject the input, and tell the user to disabled auto emoticon conversion while using triflairs: Settings -> Text & Images -> Automatically convert emoticons in your messages to emoji.
  3. Add tests to ensure it works.