def check_username_and_description(self, status):
if any(x in status.user.screen_name.lower() for x in BOT_SETTINGS['banned_username_userinfo_words']):
return False
if any(x in status.user.description.lower() for x in BOT_SETTINGS['banned_username_userinfo_words']):
return False
return True
def check_username_and_description(self, status):
return not any(
x in " ".join([status.user.screen_name, status.user.description]).lower()
for x in BOT_SETTINGS['banned_username_userinfo_words']
)
def check_username_and_description(self, status):
return not bool(
set((status.user.screen_name + " " + status.user.description).lower()).intersection(
set(BOT_SETTINGS['banned_username_userinfo_words'])
)
)