|
ecasbot
1.3.1
EC AntiSpam bot for Telegram messenger
|
Public Member Functions | |
| def | __init__ (self, account, settings) |
| def | check_chinese_bots (self) |
| def | check_fresh_userid (self) |
| def | check_hieroglyphs (self) |
| def | check_restricted_words (self) |
| def | check_too_long (self) |
| def | check_user_language (self) |
| def | check_with_url (self) |
| def | score (self) |
Private Member Functions | |
| def | __find_methods |
Private Attributes | |
| __account | |
| __scorers | |
| __settings | |
| __userid | |
| __username | |
| def ecasbot.chkusr.CheckUsername.__init__ | ( | self, | |
| account, | |||
| settings, | |||
| None | |||
| ) |
Main constructor of CheckUsername class. :param account: Object of telebot.User class to check. :param settings: Object of Settings class.
| def ecasbot.chkusr.CheckUsername.check_chinese_bots | ( | self, | |
| int | |||
| ) |
Find chinese bots and score them to +100. :return: Score result.
| def ecasbot.chkusr.CheckUsername.check_fresh_userid | ( | self, | |
| int | |||
| ) |
Check and score newly registered users. :return: Score result.
| def ecasbot.chkusr.CheckUsername.check_hieroglyphs | ( | self, | |
| int | |||
| ) |
Check and score users with chinese hieroglyphs. :return: Score result.
| def ecasbot.chkusr.CheckUsername.check_restricted_words | ( | self, | |
| int | |||
| ) |
Check and score users with restricted words in username. :return: Score result.
| def ecasbot.chkusr.CheckUsername.check_too_long | ( | self, | |
| int | |||
| ) |
Check and score users with very long usernames. :return: Score result.
| def ecasbot.chkusr.CheckUsername.check_user_language | ( | self, | |
| int | |||
| ) |
Check and score client's languages. :return: Score result.
| def ecasbot.chkusr.CheckUsername.check_with_url | ( | self, | |
| int | |||
| ) |
Check and score users with URLs in username. :return: Score result.
| def ecasbot.chkusr.CheckUsername.score | ( | self, | |
| int | |||
| ) |
Return final score after running checks. :return: Final score.