diff options
| author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2026-06-01 22:25:56 +0200 |
|---|---|---|
| committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2026-06-01 22:25:56 +0200 |
| commit | b9e3ab8e8213efa260ff3b0030d2c399f3afc653 (patch) | |
| tree | ce8149a256c5c36dba3688cd7dee12bb4cde59a7 /standalone_server.lua | |
| download | r6p-b9e3ab8e8213efa260ff3b0030d2c399f3afc653.tar.xz | |
init
Diffstat (limited to 'standalone_server.lua')
| -rwxr-xr-x | standalone_server.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/standalone_server.lua b/standalone_server.lua new file mode 100755 index 0000000..a1dd571 --- /dev/null +++ b/standalone_server.lua @@ -0,0 +1,20 @@ +#!/usr/bin/env lua5.1 +local server = require("server") + +local srv = server.create() +local started = false + +while true do + server.update(srv) + local status, invite = server.match_status(srv) + + if status == "fail" then + print("failed to register match (match server down?)") + break + elseif status == "active" and not started then + started = true + print("invite: " .. invite) + end +end + +server.close(srv) |
