urbit/pkg/arvo/lib/hark/chat-hook.hoon

32 lines
383 B
Plaintext
Raw Normal View History

2020-11-05 05:23:34 +03:00
/- 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)
==
--
--