Using Discord for controlling admin techniques

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?

Thanking you,
signature

(sorry if this is the wrong category)

2 Likes

Shutdown and Global Announcements are self-explainable.

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.

2 Likes

Would the game be able to collect data from the Python App?

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.

And what about the discord announcements?

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.

Alright, thank you for helping.

for creating the global announcements system.

(this doesnt cover anything on the discord side of things but is still useful)

1 Like

Alright, I’ll check it out.
Thanks for giving me the link.

Its for sending messages between ROBLOX servers, not externals. But thanks!

thats what messagingservice can achieve? actually look into the service.

Yeah no it’s impossible to interact a discord bot using roblox lua only discord webhook using httpService

we may be getting mixed up on each others definition of servers, my definition is multiple servers of the same game (as seen below)

are you referring to multiple game instances?

Server. In this case mean external web server (runned on flask).

1 Like