This SDK allows you to set up a UDP server on port 3535 to communicate with the bot. It also generates a test.h264
file in the root directory, where you can monitor the movements of your bot.
In order to use or run this SDK you need to have an account registered with Frodobots. This is meant for research purposes, if you are interested please reach us here: Frodobots Discord
-
Clone the repository
git clone <repository_url>
-
Create a .env file in the root directory
CHANNEL_NAME= RTC_TOKEN= RTM_TOKEN= USERID=
-
Fill up the environment values with the response from our SDK API endpoint (More information in the SDK Auth section).
-
Build and run the Docker container
docker-compose up --build
-
Stop the service
docker-compose down
In order to retrieve all .env variables with your provided API_TOKEN make a POST request to the following endpoint:
-
POST
https://frodobots-web-api.onrender.com/api/v1/sdk/token
Body:
{ "bot_name": "<PROVIDED_THREE_CODE_BOT_NAME>" }
-
Complete the Bearer token with your API token.
Bearer <YOUR_API_TOKEN>
{
"CHANNEL_NAME": "<CHANNEL_NAME>",
"RTC_TOKEN": "<RTC_TOKEN>",
"RTM_TOKEN": "<RTM_TOKEN>",
"USERID": <USER_ID>
}
With the response values you can fill up the .env file in the root directory.
-
The SDK will be running on port 3535. You can send commands to the bot by sending a UDP packet to this port.
-
After running this project, a
test.h264
file will be generated in the root directory. You can use this file to monitor the movements of your bot. -
An example script using Pythong on how to communicate with the SDK has been provided in the
example
directory. However, you can write your own script in any programming language to communicate with the bot, as long as you send the correct commands to the UDP server.