30 lines
1008 B
Plaintext
30 lines
1008 B
Plaintext
|
<require-service <daemon tox_bot>>
|
||
|
<daemon tox_bot {
|
||
|
argv: "/home/repo/syndicate/syndicate_actor_tox/syndicate_actor_tox"
|
||
|
dir: "/home/repo/syndicate/syndicate_actor_tox"
|
||
|
protocol: text/syndicate
|
||
|
clearEnv: #t
|
||
|
}>
|
||
|
|
||
|
? <service-object <daemon tox_bot> ?tox> [
|
||
|
$config ? <service-object <daemon freedesktop_notifier> ?notifier> [
|
||
|
$tox [
|
||
|
<bootstrap "6EF679EBD205E8DF9B6975D21CD157D046287700CADDF86F94B7ED243DC26A30" "20a:c3d2:8cf8:f8e5:80fe:9194:3800:87e6" 33445>
|
||
|
? <tox ?pk ?core> $core [
|
||
|
? <address ?addr> $log ! <log "-" { line: ["tox address" $addr] }>
|
||
|
? <request ?pk ?msg> [
|
||
|
$notifier ! <notify "friend request" $msg 0 Low>
|
||
|
<accept $pk>
|
||
|
]
|
||
|
? <friend ?pk ?friend> $friend [
|
||
|
$notifier ! <notify "new friend" $pk 0 Low>
|
||
|
? <name ?name> [
|
||
|
$notifier ! <notify "friend name" $name 0 Low>
|
||
|
? <status-message ?msg> [ $notifier ! <notify $name $msg 0 Low> ]
|
||
|
]
|
||
|
]
|
||
|
]
|
||
|
]
|
||
|
]
|
||
|
]
|