urbit/main/app/ye/core.hook

48 lines
1.1 KiB
Plaintext
Raw Normal View History

2014-11-23 08:20:51 +03:00
:: Ye broadcast
::
:::: /hook/gate/ye/bin
::
|%
++ sign ::
$% $: %a ::
$% [%went p=ship q=cape] ::
== == == ::
++ flog :: sent to %dill
$% [%crud p=@tas q=(list tank)] ::
[%text p=tape] ::
== ::
--
::
!:
|_ [hid=hide ~]
++ poke-ye-args
|= [ost=bone you=ship tex=tape ~]
:_ +>.$
2014-11-23 09:10:35 +03:00
=+ mez=(crip "{<our.hid>}: {tex}")
:~ [ost %pass /ye %a %want [our.hid (sein our.hid)] /q/ye mez]
2014-11-23 08:20:51 +03:00
[ost %give %nice ~]
==
::
++ poke-txt
|= [ost=bone him=ship cor=@t]
:_ +>.$
2014-11-23 09:10:35 +03:00
~[[ost %give %nice ~] [ost %pass /de %d %flog %text "> {(trip cor)}"]]
2014-11-23 08:20:51 +03:00
::
++ pour
|= [ost=bone pax=path sih=sign]
?> ?=([%ye ~] pax)
:_ +>.$
%+ turn (~(tap by sup.hid))
|= [ost=bone *]
:^ ost %give %rush
:- %tang :_ ~
?. ?=(%good q.sih)
leaf/"ye failed"
2014-11-23 09:10:35 +03:00
leaf/"ye received"
2014-11-23 08:20:51 +03:00
::
++ peer
|=
*
`+>
--