shrub/main/lib/chat.hoon

41 lines
2.3 KiB
Plaintext
Raw Normal View History

2013-10-30 22:26:51 +04:00
!:
:: /=main=/lib/chat/hoon
::
|%
++ chat :: user action
2014-05-31 02:41:22 +04:00
$% [%all p=room q=? r=mess] :: broadcast
2013-11-08 04:34:44 +04:00
[%def p=mess] :: default
2013-10-30 22:26:51 +04:00
[%how ~] :: help
[%out ~] :: log out
[%say p=@p q=mess] :: private
[%who p=?(%tis %ttt %tcc) q=(list room)] :: query users
2014-05-31 02:41:22 +04:00
[%kil p=(list ,@p)] :: kill user(s)
[%res p=(list ,@p)] :: resuscitate(s)
2013-10-30 22:26:51 +04:00
== ::
++ mess :: message
2013-10-30 22:26:51 +04:00
$% [%do p=@t] :: action
[%ex p=@t q=tank] :: expression
[%qu p=@t] :: quote
== ::
2013-11-08 04:34:44 +04:00
++ sand :: chat state
$% [& p=?] :: broadcast
[| p=@p] :: private
== ::
2013-10-30 22:26:51 +04:00
++ user ,[p=@p q=@t] :: downstream identity
2014-05-31 02:41:22 +04:00
++ room ,@tas :: room
++ coci %mars :: default room
2013-10-30 22:26:51 +04:00
++ zing :: client to server
2014-05-31 02:41:22 +04:00
$% [%all p=room q=? r=mess] :: broadcast
[%ego p=room q=@da] :: ping / last active
2013-10-30 22:26:51 +04:00
[%out ~] :: log out
[%who p=room q=(unit (list room))] :: query users
2013-10-30 22:26:51 +04:00
== ::
++ zong :: server to client
2014-05-31 02:41:22 +04:00
$% [%all p=@da q=room r=sect s=user t=mess] :: broadcast
[%new p=@da q=room r=user] :: user joined
[%out p=@da q=room r=user] :: user left
[%who p=@da q=room r=(map room (list user))] :: users
2013-10-30 22:26:51 +04:00
== ::
--
2014-05-31 02:41:22 +04:00