Hi! I’m from Chojrak Development working on the project MZK Koszalin, a bus simulator.
About 10 mins ago, I came up with the idea of using a bot (coded by our lead) to control the game and at the same time, possibly announcing it.
Example
Discord Channel Command Center: !update New update! Bug fixes, new decorations, new bus added.
Game: teleports players to a place, shows reason, after ten seconds, teleports back
Discord Announcements: announces it
End of Example
Anyways, I was wondering if we would be allowed to go through the Roblox API to actually make the magic work. If not, is there any other way to do it without disobeying the Roblox Terms of Service?
Roblox doesn’t have an API that can directly interact with game servers. You will need to have the Roblox server get data from some sort of web server and then have your Discord bot upload whatever it needs to the web server so that the game server can read it.
I’m unfamiliar with Python, but you’ll need to create an API endpoint that your Roblox game server can access. Then, have the game server poll the endpoint every few seconds and see if anything has changed in its results (indicating it needs to run a function). When a command is run on the Discord bot, you can update what the endpoint returns.
It should work the same as any other command that interacts with the game servers, just make sure the game server can read the data presented in your endpoint and distinguish what actions it needs to perform.