mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
b3901ab42f
git-subtree-dir: pkg/arvo git-subtree-mainline:9c8f40bf6c
git-subtree-split:c20e2a185f
49 lines
938 B
Plaintext
49 lines
938 B
Plaintext
::
|
|
::
|
|
/? 309
|
|
::
|
|
/- hall
|
|
/+ chat, hall-json
|
|
::
|
|
|_ str=streams:chat
|
|
++ grow
|
|
|%
|
|
++ json
|
|
=, enjs:format
|
|
^- ^json
|
|
%+ frond %chat
|
|
%- pairs
|
|
:~
|
|
::
|
|
[%inbox (conf:enjs:hall-json inbox.str)]
|
|
::
|
|
:- %configs
|
|
%- pairs
|
|
%+ turn ~(tap by configs.str)
|
|
|= [cir=circle:hall con=(unit config:hall)]
|
|
^- [@t ^json]
|
|
:- (crip (circ:en-tape:hall-json cir))
|
|
?~(con ~ (conf:enjs:hall-json u.con))
|
|
::
|
|
:- %circles :- %a
|
|
%+ turn ~(tap in circles.str)
|
|
|= nom=name:hall
|
|
[%s nom]
|
|
::
|
|
:- %peers
|
|
%- pairs
|
|
%+ turn ~(tap by peers.str)
|
|
|= [cir=circle:hall per=(set @p)]
|
|
^- [@t ^json]
|
|
:- (crip (circ:en-tape:hall-json cir))
|
|
[%a (turn ~(tap in per) ship)]
|
|
::
|
|
==
|
|
--
|
|
::
|
|
++ grab
|
|
|%
|
|
++ noun streams:chat
|
|
--
|
|
--
|