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
|
2014-06-10 05:45:19 +04:00
|
|
|
[%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
|
|
|
== ::
|
2013-12-09 01:23:03 +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
|
2014-06-10 05:45:19 +04:00
|
|
|
[%ego p=room q=@da] :: ping / last active
|
2013-10-30 22:26:51 +04:00
|
|
|
[%out ~] :: log out
|
2014-06-10 05:45:19 +04:00
|
|
|
[%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
|
2014-06-10 05:45:19 +04:00
|
|
|
[%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
|
|
|
|