ecasbot  1.3.1
EC AntiSpam bot for Telegram messenger
ecasbot.chkusr.CheckUsername Class Reference

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
 

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ check_chinese_bots()

def ecasbot.chkusr.CheckUsername.check_chinese_bots (   self,
  int 
)
Find chinese bots and score them to +100.
:return: Score result.

◆ check_fresh_userid()

def ecasbot.chkusr.CheckUsername.check_fresh_userid (   self,
  int 
)
Check and score newly registered users.
:return: Score result.

◆ check_hieroglyphs()

def ecasbot.chkusr.CheckUsername.check_hieroglyphs (   self,
  int 
)
Check and score users with chinese hieroglyphs.
:return: Score result.

◆ check_restricted_words()

def ecasbot.chkusr.CheckUsername.check_restricted_words (   self,
  int 
)
Check and score users with restricted words in username.
:return: Score result.

◆ check_too_long()

def ecasbot.chkusr.CheckUsername.check_too_long (   self,
  int 
)
Check and score users with very long usernames.
:return: Score result.

◆ check_user_language()

def ecasbot.chkusr.CheckUsername.check_user_language (   self,
  int 
)
Check and score client's languages.
:return: Score result.

◆ check_with_url()

def ecasbot.chkusr.CheckUsername.check_with_url (   self,
  int 
)
Check and score users with URLs in username.
:return: Score result.

◆ score()

def ecasbot.chkusr.CheckUsername.score (   self,
  int 
)
Return final score after running checks.
:return: Final score.