Closed debashisbiswas closed 4 years ago
This has actually been patched. The reason why it's currently a bug is because Horace hasn't been updated with the full fix (yet) 👍
Currently my PR is still open since I was working on the Hackathon bot for KOA and have some use cases to add to said PR, i.e. words at the start or end of message and punctuation, and will be wrapped up this weekend. Relevant pr is #130
Please Describe Your Issue When the user adds highlights, it is added without checking if the phrase already exists. Then, when checking for a match, the whole highlight list is checked, so if there are duplicates, the user gets multiple private messages from Horace notifying them about the same highlight.
How to Reproduce
!highlights add testphrase
!highlights add testphrase
again, with the same phrase as step 1!highlights list
and see that the phrase is listed twiceExpected behavior Horace should stop you from adding duplicate highlight items, letting you know when he did not add your item.