MCPcopy Create free account
hub / github.com/Drakkar-Software/OctoBot / get_api

Method get_api

octobot/octobot_api.py:30–31  ·  view source on GitHub ↗
(self, bot_id: str)

Source from the content-addressed store, hash-verified

28 self.octobot_api_by_bot_id: dict[str, "OctoBotAPI"] = {}
29
30 def get_api(self, bot_id: str) -> "OctoBotAPI":
31 return self.octobot_api_by_bot_id[bot_id]
32
33 def register_api(self, bot_id: str, octobot_api: "OctoBotAPI"):
34 self.octobot_api_by_bot_id[bot_id] = octobot_api

Callers 2

schedule_bot_stopMethod · 0.80
get_bot_apiMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected