Browse Source

added a script for parsing event types

master
XeonSquared 5 years ago
parent
commit
a7b1fb7879
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      eventtypes.lua

+ 16
- 0
eventtypes.lua View File

@@ -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

Loading…
Cancel
Save