Tags: bomzheg/KarmaBot
Tags
Restrict on negative karma (#72) * add transaction to change_karma services * split ban and ro to handler part and service part * fixes, separate logic between functions, refactoring * add __all__ for linter fix * add automatically restriction after very low karma * fixes * add config param to enable/disable auto restrict on negative karma * move render message in separate function * move condition to separate function * move TypeRestriction to models package * rename variable * add function for check has user restriction or not * fix exception clause * fix typehint (change destination in pyrogram) * add auto restrict on negative karma * last one restriction on negative karma must be ban * text fixes * update .gitignore * fix texts * refactor more logic karmic ro * user cant negative karma to target with RO new exception and Exception group - for skip negative karma process remove deprecated filters * BUGFIXES, fix cancel change karma * correct shield restricted from decrease karma and notify user for that * fix typos remove unused comments remove unused imports * fix race condition in case one user change karma and make it less than -100, bot change karma to -80 than another user change same karma and than first user cancel his action. Now it case correct work cancel imitate that user newer do cancelled action * rename consts * add few info to README.md Co-authored-by: Yuriy Chebyshev <cheb.yuriy@gmail.com>
Moderation (#45) * fixes * fixes * add ro command * add documentation for new commands * add ban (+docs) add messages about errors * refactor exception, move logic send answer to handler * rename commnet with chat name * bugfix deprecated function * now minus triggers must be in first line * remove logging * add save in karma events table all events with karma * add warns, add events restriction * add get info user * update formating info
PreviousNext