git ssb

2+

cel / ssb-party



Tree: 8b6827337d6c9a677261c5987cb95bbee685d870

Files: 8b6827337d6c9a677261c5987cb95bbee685d870 / control.js

389 bytesRaw
1exports.name = 'control'
2exports.version = '0.0.0'
3exports.permissions = {
4 master: {allow: ['close']},
5}
6exports.manifest = {
7 stop: 'async'
8}
9exports.init = function (sbot, config) {
10 return {
11 stop: function (cb) {
12 sbot.close(function (err) {
13 if (err) return cb(err)
14 cb()
15 // TODO: make this not necessary
16 process.exit(0)
17 })
18 }
19 }
20}
21

Built with git-ssb-web