mirror of
https://github.com/dragonfireclient/hydra-dragonfire.git
synced 2024-11-23 19:34:00 -05:00
22 lines
394 B
Lua
Executable file
22 lines
394 B
Lua
Executable file
#!/usr/bin/env hydra-dragonfire
|
|
local client = require("client")()
|
|
|
|
client:enable("map")
|
|
client.map:set(hydra.map(true))
|
|
|
|
client:enable("pkts")
|
|
client.pkts:subscribe("chat_msg")
|
|
|
|
client:connect()
|
|
|
|
while true do
|
|
local evt = client:poll()
|
|
|
|
if not evt or evt.type == "disconnect" or evt.type == "interrupt" then
|
|
break
|
|
elseif evt.type == "pkt" then
|
|
print("chatmsg")
|
|
end
|
|
end
|
|
|
|
client:close()
|