This website works better with JavaScript.
Home
Explore
lain.church
Help
Register
Sign In
izaya
/
discord-analysis
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
added a script for parsing event types
master
XeonSquared
5 years ago
parent
d866bf7d10
commit
a7b1fb7879
1 changed files
with
16 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
Cancel
Save