From b9e3ab8e8213efa260ff3b0030d2c399f3afc653 Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Mon, 1 Jun 2026 22:25:56 +0200 Subject: init --- standalone_server.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 standalone_server.lua (limited to 'standalone_server.lua') 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) -- cgit v1.2.3