Skip to content

Commit

Permalink
ENH: Inject execution into bot for easier access outside of action me…
Browse files Browse the repository at this point in the history
…thod.
  • Loading branch information
hhslepicka committed Aug 6, 2021
1 parent 5132f07 commit 16438e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions botcity/base/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def main(cls):
parameters = bot.maestro.get_task(task_id).parameters

execution = BotExecution(server, task_id, token, parameters)
bot.execution = execution
else:
raise RuntimeError("Your setup is missing the botcity-maestro-sdk package. "
"Please install it with: pip install botcity-maestro-sdk")
Expand Down

0 comments on commit 16438e3

Please sign in to comment.