nice working and testing

This commit is contained in:
sShemet
2026-03-17 00:16:49 +05:00
parent c623b8c2f9
commit f639deac32
36 changed files with 256039 additions and 37759 deletions

View File

@@ -232,11 +232,11 @@ def make_json_object():
# Добавляем приветственное сообщение каждые 10 минут
current_second = int(time.time())
if current_second % 600 <= 5:
if current_second % 1000 <= 5:
# Проверяем, есть ли приветственное сообщение от Eikichi-bot в последних 20 сообщениях
has_recent_hello = any(
comment.get('sendr') == 'Eikichi-bot' and comment.get('type') == 'hello'
for comment in all_comments[-20:] # Последние 20 сообщений
for comment in all_comments[-40:] # Последние 20 сообщений
)
if not has_recent_hello: