urbit/main/app/ye/core.hook

45 lines
1.2 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 ~]
2015-01-10 05:21:25 +03:00
++ peer ,_`.
2014-11-23 08:20:51 +03:00
++ 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)
:_ +>.$
2014-12-19 01:40:56 +03:00
:- [ost %pass / %g %cide %$]
2015-01-11 04:33:01 +03:00
=+ ack=?+(q.sih "failed" %good "recieved")
(spam tang/[leaf/"ye {ack}"]~)
++ spam
|* a=^
2014-11-23 08:20:51 +03:00
%+ turn (~(tap by sup.hid))
2015-01-11 04:33:01 +03:00
|=([ost=bone *] [ost %give %rush a])
2014-11-23 08:20:51 +03:00
::
--