added a script for parsing event types
This commit is contained in:
parent
d866bf7d10
commit
a7b1fb7879
16
eventtypes.lua
Normal file
16
eventtypes.lua
Normal 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…
Reference in New Issue
Block a user