urbit/main/bin/hi.hoon
2013-10-06 00:44:07 -07:00

24 lines
453 B
Plaintext

!:
:: /=main=/toy/hi/hoon
::
|= *
|= [bud=@p ebb=$|(~ [tex=tape ~])]
^- bowl
:- :~ [%sq bud %hi /request ?~(ebb '' (rap 3 tex.ebb))]
==
:- ~
:- ^- (list slip)
:~ [/request [%ow ~]]
[/prompt [%up %none "waiting for {(scow %p bud)}" ~]]
==
|= [now=@da pax=path nut=note]
?> =(/request pax)
?> ?=(%ow -.nut)
:- ?: =(%good p.nut)
~
:_ ~
:- %ha
:- %leaf
"hi: {(scow %p bud)} rejected a message"
~