git ssb

16+

Dominic / patchbay



Tree: 0173c48b79cbde1e8ac112225fce0958e72331a7

Files: 0173c48b79cbde1e8ac112225fce0958e72331a7 / background-process.js

1046 bytesRaw
1var fs = require('fs')
2var Path = require('path')
3var electron = require('electron')
4
5console.log('STARTING SBOT')
6
7var createSbot = require('scuttlebot')
8 .use(require('scuttlebot/plugins/master'))
9 .use(require('scuttlebot/plugins/gossip'))
10 .use(require('scuttlebot/plugins/replicate'))
11 .use(require('scuttlebot/plugins/invite'))
12 .use(require('scuttlebot/plugins/local'))
13 .use(require('scuttlebot/plugins/logging'))
14 .use(require('ssb-about'))
15 .use(require('ssb-backlinks'))
16 .use(require('ssb-friends'))
17 .use(require('ssb-private'))
18 .use(require('ssb-blobs'))
19 .use(require('ssb-search'))
20 .use(require('ssb-meme'))
21 .use(require('ssb-ebt'))
22 .use(require('ssb-chess-db'))
23 .use(require('ssb-query'))
24 .use(require('ssb-ws'))
25
26// pull config options out of depject
27var config = require('./config').create().config.sync.load()
28
29var sbot = createSbot(config)
30var manifest = sbot.getManifest()
31fs.writeFileSync(Path.join(config.path, 'manifest.json'), JSON.stringify(manifest))
32electron.ipcRenderer.send('server-started')
33

Built with git-ssb-web