urbit/pkg/arvo/lib/hark/chat-hook.hoon
2020-11-05 15:33:52 +10:00

32 lines
381 B
Plaintext

/- sur=hark-chat-hook
^?
=< [. sur]
=, sur
|%
::
++ dejs
=, dejs:format
|%
::
++ action
%- of
:~ listen+pa
ignore+pa
==
--
::
++ enjs
=, enjs:format
|%
::
++ update
|= upd=^update
%+ frond -.upd
?- -.upd
?(%listen %ignore) (path chat.upd)
%initial a+(turn ~(tap in watching.upd) path)
==
--
--