mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
39 lines
658 B
Plaintext
39 lines
658 B
Plaintext
/- *chat-hook
|
|
=, dejs:format
|
|
|_ act=chat-hook-action
|
|
++ grab
|
|
|%
|
|
++ noun chat-hook-action
|
|
++ json
|
|
|= jon=^json
|
|
=< (parse-chat-hook-action jon)
|
|
|%
|
|
++ parse-chat-hook-action
|
|
%- of
|
|
:~
|
|
[%add-owned add-owned]
|
|
[%add-synced add-synced]
|
|
[%remove pa]
|
|
==
|
|
::
|
|
++ add-owned
|
|
%- ot
|
|
:~ [%path pa]
|
|
[%security sec]
|
|
==
|
|
::
|
|
++ add-synced
|
|
%- ot
|
|
:~ [%ship (su ;~(pfix sig fed:ag))]
|
|
[%path pa]
|
|
==
|
|
::
|
|
++ sec
|
|
^- $-(^json chat-security)
|
|
(su (perk %channel %village %journal %mailbox ~))
|
|
::
|
|
--
|
|
--
|
|
--
|
|
|