var h = require('hyperscript') var u = require('./util') var pull = require('pull-stream') var combine = require('depject') var fs = require('fs') var path = require('path') var SbotApi = require('./sbot-api') document.head.appendChild(h('style', fs.readFileSync('./style.css', 'utf8'))) var modules = fs.readdirSync(path.join(__dirname, 'modules')) .map(function (e) { return require('./modules/'+e) }) var renderers = [] var app = [] var App = require('./plugs').first(app) var u = require('./util') modules.unshift(SbotApi()) modules.unshift({app: app}) combine(modules) document.body.appendChild(App())