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