git ssb

16+

Dominic / patchbay



Tree: ecec5439ee625b5fd9b522a8fe4eb456aace620a

Files: ecec5439ee625b5fd9b522a8fe4eb456aace620a / background-process.js

1147 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-blobs'))
17 .use(require('ssb-chess-db'))
18 .use(require('ssb-ebt'))
19 .use(require('ssb-friends'))
20 .use(require('ssb-meme'))
21 .use(require('ssb-private'))
22 .use(require('ssb-query'))
23 .use(require('ssb-search'))
24 .use(require('ssb-unread'))
25 .use(require('ssb-ws'))
26 // .use(require('ssb-mutual')) // this is has recursion problems atm
27
28// pull config options out of depject
29var config = require('./config').create().config.sync.load()
30
31var sbot = createSbot(config)
32var manifest = sbot.getManifest()
33fs.writeFileSync(Path.join(config.path, 'manifest.json'), JSON.stringify(manifest))
34electron.ipcRenderer.send('server-started')
35

Built with git-ssb-web