add active_time quests support
This commit is contained in:
@ -28,6 +28,14 @@ class EventService:
|
||||
|
||||
# Преобразуем ваши типы событий в нужные форматы
|
||||
if event_type == "online_players_update":
|
||||
tick_seconds = 60
|
||||
|
||||
for p in players:
|
||||
name = p.get("player_name")
|
||||
if not name:
|
||||
continue
|
||||
await DailyQuestsService().on_active_time_tick(name, tick_seconds)
|
||||
|
||||
# Регистрируем сервер, если его нет
|
||||
await self._register_server(server_ip, event_data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user