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

Method register_api

octobot/octobot_api.py:33–34  ·  view source on GitHub ↗
(self, bot_id: str, octobot_api: "OctoBotAPI")

Source from the content-addressed store, hash-verified

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
35
36 def unregister_api(self, bot_id: str):
37 self.octobot_api_by_bot_id.pop(bot_id)

Callers 1

__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected