This is a Web Panel made with Python that allows you to schedule the publish at a specific time, replace servers, and optionally restart servers if you provide a Roblox cookie.
This script runs in a loop, checking for scheduled updates to run. It then uses the Roblox Open Cloud API to save/publish your place. If you have specified a .ROBLOSECURITY token, it will use it to shutdown server or migrate to latest version (shouldReplaceServers)
sys.argv[2] # Argument 1 would be "python" and argument 2 would be the script name because that's how you run it
in the code
So you can run the script in the terminal like this
python main.py ./place.rblx
By the way, you should name the primary python script “_ _ main _ _.py” (without the spaces in between the underscores, devforum formats that as bold) so you could just run the script like the following
If you meant shutting down the servers, I am using .ROBLOSECURITY token to shutdown server after it is published successfully. For teleporting players to a new server, you can use SoftShutdown
I guess this is only useful if you didn’t bring your laptop with you and you’re going out and you finished with the update before going out and publish it while you’re out
I would 50% like this cuz I barely update games now
but when looking at the code, I noticed that I was only able to get these libraries provided in PyCharm, but not in VSCode, so I assumed you used PyCharm to make this
Some games have a scheduled update time (E.g. Every Friday 5 EST).
If they are unavailable at the update time they could use this.
Additionally, some games have more than 2 places and it would be a hazzle to update them all at the same time, and with this script, they can update on time.
I only used VSCode to develop this script, and all the libraries I used are already provided when python is installed (I think)
Just a tip: If you can avoid using sensitive information then do and in this case you can. It is possible to use the MessagingService Open Cloud API to tell all active servers to kick all players. This way you won’t even need to worry about the cookie getting invalidated.
That is one reason why I made an option that lets you use .env
Perhaps I can add a config to let you define a event that will be sent when the game gets shutdown. But you will need to handle the shutdown logic in game by yourself.
.env files are just regular text files used to store ENVironment variables so if that file gets compromised your security cookie will be as well, mine was just a tip to reduce the risks and to make it more practical due to IP changes invalidating the cookie.
Renamed main.py to __main__.py@bitsplicer
Made it aware of sys.argv so you can now input args using command bar @bitsplicer
Made it so you can specify a MessagingService event name to make it fire when publish @NinjaFurfante07
Remade handling variables from .env
+ More!