#!/usr/bin/env python3 """ Agent Convening Script for Timmy Academy Called by cron to gather agents in Evennia world """ import requests import json from datetime import datetime def convene_agents(): """Send message to all online agents to convene in Grand Commons Hall""" # Web API endpoint (Evennia web admin) # This would use Evennia's API or direct database access timestamp = datetime.now().isoformat() message = f"[CONVENTION CALL {timestamp}] All agents convene to Grand Commons Hall for synchronization." # Log to academy log with open('/root/workspace/timmy-academy/server/logs/conventions.log', 'a') as f: f.write(f"{timestamp}: Convening agents\n") print(f"Convention called at {timestamp}") return True if __name__ == "__main__": convene_agents()