dgw / sopel-duel

Clone of a mIRC script that lets users duel each other
1 stars 1 forks source link

Enhance kicking logic to detect more situations #30

Open dgw opened 8 years ago

dgw commented 8 years ago

Primary goal: Figure out who wins before even saying anything, so availability of kicking can take into account whether the bot can kick the loser based on channel privileges.

Simple refactor, probably. It's mostly about deciding whether the bot says "loser gets kicked" or not.

dgw commented 8 years ago

The more I think about it, the more I realize it would be most helpful to have this sort of thing in a shared library, or a shared object in bot.memory that multiple modules can use. Probably going to implement it in each module separately for expedience, though.