MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / get_existing_bot_name

Function get_existing_bot_name

scripts/setup_slack.py:79–89  ·  view source on GitHub ↗

Read SLACK_BOT_NAME from vm.env if it exists.

()

Source from the content-addressed store, hash-verified

77
78
79def get_existing_bot_name() -> str | None:
80 """Read SLACK_BOT_NAME from vm.env if it exists."""
81 if not VM_ENV_PATH.exists():
82 return None
83 with open(VM_ENV_PATH, "r") as f:
84 for line in f:
85 line = line.strip()
86 if line.startswith("SLACK_BOT_NAME="):
87 value = line.split("=", 1)[1].strip().strip('"').strip("'")
88 return value if value else None
89 return None
90
91
92def customize_manifest(

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected