orz-bot icon indicating copy to clipboard operation
orz-bot copied to clipboard

Antiorz

Open Shad0wSeven opened this issue 4 years ago • 4 comments

Basically orz has spawned the new "antiorz" slang for anti-orz things, however orz bot still reacts to them with orz.

This is very antiorz.

make orz bot orz again ORZ2020

its literally a one liner change

- if 'orz' in content.lower():
+ if ('orz' in content.lower()) and not ('antiorz' in content.lower()):

Example: image

With Patch: (ignore edit message lol) image

Shad0wSeven avatar Feb 13 '21 23:02 Shad0wSeven

However, if orz appears elsewhere in the message, Orz Bot should logically still react. To solve this, we can instead compare:

if content.lower().count('orz') > content.lower().count('antiorz'):

As long as there is one "orz" that does not belong in an "antiorz" substring, then Orz bot will react. This would allow Orz Bot to react to "orz antiorz" for example.

mizlan avatar Feb 13 '21 23:02 mizlan

END ORZ i will edit to reflect that

Shad0wSeven avatar Feb 13 '21 23:02 Shad0wSeven

No, your latest commit breaks the code... what are you doing? We want a reaction if and only if there are strictly MORE orzes that are antiorzes.

mizlan avatar Feb 14 '21 00:02 mizlan

end bullies me 24/7

Shad0wSeven avatar Feb 14 '21 02:02 Shad0wSeven