added a script for parsing event types

This commit is contained in:
Izaya 2019-02-09 10:40:52 +11:00
parent d866bf7d10
commit a7b1fb7879
1 changed files with 16 additions and 0 deletions

16
eventtypes.lua Normal file
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