mirror of https://gitlab.com/bashrc2/epicyon
Check if nickname exists
parent
7d036936dc
commit
5000f8130f
|
|
@ -166,7 +166,8 @@ def blocked_user_agent(calling_domain: str, agent_str: str,
|
|||
'meta-externalfetcher', 'meta-webindexer', 'aiscraper',
|
||||
'openai', 'panscient', 'phindbot', 'qualifiedbot', 'quillbot',
|
||||
'sbIntuitionsbot', 'semrushbot', 'shapbot', 'terracotta',
|
||||
'velenpublicwebcrawler', 'wpbot', 'yak'
|
||||
'velenpublicwebcrawler', 'wpbot', 'yak', 'amzn-', 'azureai',
|
||||
'kagi-fetcher'
|
||||
)
|
||||
for bot_str in llm_bot_strings:
|
||||
if bot_str in agent_str_lower:
|
||||
|
|
|
|||
|
|
@ -88,8 +88,11 @@ def post_to_outbox(self, message_json: {}, version: str,
|
|||
return False
|
||||
|
||||
if not is_online():
|
||||
print('WARN: ' + post_to_nickname +
|
||||
' cannot send post because not online')
|
||||
if post_to_nickname:
|
||||
print('WARN: ' + post_to_nickname +
|
||||
' cannot send post because not online')
|
||||
else:
|
||||
print('WARN: cannot send post because not online')
|
||||
return False
|
||||
|
||||
city = self.server.city
|
||||
|
|
|
|||
Loading…
Reference in New Issue