From a7b1fb787922aa181b9849c58a39225f1547dfc3 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Sat, 9 Feb 2019 10:40:52 +1100 Subject: [PATCH] added a script for parsing event types --- eventtypes.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 eventtypes.lua diff --git a/eventtypes.lua b/eventtypes.lua new file mode 100644 index 0000000..d4ceb86 --- /dev/null +++ b/eventtypes.lua @@ -0,0 +1,16 @@ +tA = {...} +eT = {} +-- "event_type":"send_message" +for k,v in ipairs(tA) do + f=io.open(v) + for line in f:lines() do + local et = line:match('"event_type":"(.-)"') + if et then + eT[et] = true + end + end +end +for k,v in pairs(eT) do + io.write("- ") + print(k) +end