frodakcin / orz-bot

orz
16 stars 2 forks source link

Antiorz #25

Open Shad0wSeven opened 3 years ago

Shad0wSeven commented 3 years ago

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

mizlan commented 3 years ago

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.

Shad0wSeven commented 3 years ago

END ORZ i will edit to reflect that

mizlan commented 3 years ago

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.

Shad0wSeven commented 3 years ago

end bullies me 24/7