Download CommonLua/Ged/XTemplates/HGIntranet.lua from sirnii/myspace: direct link, hf CLI and curl.
- Browser
- Download file 912 Bytes
-
https://huggingface.co/spaces/sirnii/myspace/resolve/main/CommonLua/Ged/XTemplates/HGIntranet.lua
- Command line
-
hf download hf://spaces/sirnii/myspace/CommonLua/Ged/XTemplates/HGIntranet.lua
-
curl -L -o HGIntranet.lua https://huggingface.co/spaces/sirnii/myspace/resolve/main/CommonLua/Ged/XTemplates/HGIntranet.lua
912 Bytes
| -- ========== GENERATED BY XTemplate Editor (Alt-F3) DO NOT EDIT MANUALLY! ========== | |
| PlaceObj('XTemplate', { | |
| group = "GedApps", | |
| id = "HGIntranet", | |
| save_in = "Ged", | |
| PlaceObj('XTemplateWindow', nil, { | |
| PlaceObj('XTemplateWindow', { | |
| 'Background', RGBA(228, 21, 21, 255), | |
| }), | |
| PlaceObj('XTemplateFunc', { | |
| 'name', "Open", | |
| 'func', function (self, ...) | |
| local slack_ticket = GetAppCmdLine():match("-slack_ticket=(%S+)") | |
| if slack_ticket then | |
| CreateRealTimeThread(function () | |
| AccountStorage = AccountStorage or {} | |
| config.SwarmWorld = config.SwarmWorld or "Bacon" | |
| Sleep(1000) | |
| local err = NetConnect("intranet-test.haemimontgames.com", 46401, | |
| "slack", slack_ticket, "Ged client", not "check_updates", "Ged connect") | |
| if err then | |
| print("Error connecting Ged to Swarm:", err) | |
| end | |
| end) | |
| end | |
| XWindow.Open(self) | |
| end, | |
| }), | |
| }), | |
| }) | |