I fixed the code that was matching the content of the post with the triggers since there was a difference between the raw and cooked versions of the trigger (eg. the ' is cooked into ’)
committed 11:29AM - 25 Jun 20 UTC
In French, the help trigger has a raw content of "afficher l'aider" which is the… n cooked into "afficher l’aide" (note the different quote character).
Since we were checking the raw content of the trigger against the cooked version of the post, this trigger never worked in French.
This changes so that we cook the trigger before checking in against the cooked version of the post.
DEV: new 'discobot_username' method that is used everywhere instead of 'discobot_user.username' / 'discobot_user.username_lower'
4 « J'aime »