roblox-terminal-launcher/README.md

24 lines
714 B
Markdown
Raw Permalink Normal View History

2024-11-06 17:12:39 +00:00
# Roblox Terminal Launcher
2024-11-06 16:52:32 +00:00
2024-11-06 17:12:39 +00:00
A simple Terminal-Based Game Launcher. Can be tweaked, i don't really care.
(LINUX ONLY, READ BELOW FOR OTHER OPERATING SYSTEMS)
2024-11-06 17:14:44 +00:00
On the last line of the `joinGame()` function, I used "xdg-open" to open the roblox-player: link. This can be substituted for "start" (Windows) and "open" (macOS)
2024-11-06 17:12:39 +00:00
2024-11-06 17:14:44 +00:00
You could also probably make joining a server work, just add another argument for `joinGame()`, and replace the following code
FROM:
```py
available_games = [game for game in data if (game['maxPlayers'] - game['playing']) >= 3]
if available_games:
gameItem = random.choice(available_games)
else:
gameItem = {"id": None}
```
TO:
```py
gameItem = {"id": "YOUR_SERVER_ID_HERE"}
```