reteps / kbot

A kahoot bot that correctly answers questions.
81 stars 30 forks source link

Check more precisely if receiving answers from correct quiz #33

Closed zap-wizard closed 4 years ago

zap-wizard commented 4 years ago
reteps commented 4 years ago

this is great work. Can you make sure that this works with quizzes with emojis in the name? That was the main reason I added the similarity checking. After we confirm that works, I will merge.

zap-wizard commented 4 years ago

It does not work when there are emojis in the name, because all emojis are removed from the name that will be searched, so there's no exact match. But why are the emojis removed from the name? If I skip this line of code name = self._remove_emojis(name.replace("\\'", "'")) in searchQuiz, everything works fine. Even if the name contains many weird emojis, no problems.

reteps commented 4 years ago

in the past I had some issue comparing emoji-based titles. Guess that is no longer an issue :shrug: