Improvement

This commit is contained in:
2025-03-10 03:10:22 +08:00
commit afd1a37c0c
36 changed files with 1599 additions and 0 deletions

19
comet/comet.py Normal file
View File

@@ -0,0 +1,19 @@
from lib import agency
import yaml
import time
moon_addr = None
moon_port = None
with open('comet_config.yaml', 'r') as config_file:
config = yaml.safe_load(config_file)
moon_addr = config.get("moon_addr", "127.0.0.1")
port = config.get("moon_port", 8765)
agent = None
def handler(data: dict):
pass
if __name__ == "__main__":
agent = agency.Agent(name="comet", addr=moon_addr, handler=handler)
agent.runasthread()