I need sending actions with python code. The starter bot for JS and Python has no implementation for executing command. I manage to understand from the kotlin code that I can use the following in python:
connection.send("SendPlayerCommand", botCommand)
Although I need help getting the botCommand datatype in Python.
Any help would be much appreciated.
What I managed to get to was that the datatype is a dictionary, with the Action and the Bot ID. Where Action is a number between 1 and 12 (I think) and your own bot’s ID.
Hope this helps.
Yes, the python SignalR library expects the arguments as a list unlike some other languages. As a side note, the values given in your listeners (e.g ReceiveBotState) are also lists, so you’ll want to unwrap the values before using them