Created
May 4, 2025 05:14
-
-
Save FractalGeodes/a9a956f06491da12eb0b0764dce4de83 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pluralkit | |
| from pathlib import Path | |
| from time import sleep | |
| SYSTEM_ID = "vgspl" | |
| FILE = Path("C:/Users/ringl/Downloads/wawa") # Can just be any path | |
| FETCH_INTERVAL = 30 # In seconds | |
| pk = pluralkit.Client(async_mode=False) | |
| system = pluralkit.SystemId(SYSTEM_ID) | |
| while True: | |
| fronters = pk.get_fronters(system) | |
| fronters_formatted = [] | |
| for member in fronters: | |
| fronters_formatted.append(member.display_name or member.name) | |
| with open(FILE, "w") as f: | |
| f.write("\n".join(fronters_formatted)) | |
| sleep(FETCH_INTERVAL) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment