Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Switch to friends-swarm #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- "iojs"
- "iojs-v1.8.1"

before_install:
- sudo apt-get update -qq
Expand Down
5 changes: 3 additions & 2 deletions lib/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ var _ = require('lodash')
var irc = require('irc')
var logger = require('winston')
var subleveldown = require('subleveldown')
var createSwarm = require('./swarm')
var createSwarm = require('friends-swarm')
var wrtc = require('wrtc')
var errors = require('./errors')
var validateChannelMapping = require('./validators').validateChannelMapping
var emojis = require('./emoji')
Expand Down Expand Up @@ -43,7 +44,7 @@ function Bot (db, options) {
Bot.prototype.connect = function () {
logger.debug('Connecting to IRC and Friends')

this.swarm = createSwarm(subleveldown(this.db, 'swarm'))
this.swarm = createSwarm(subleveldown(this.db, 'swarm'), {wrtc: wrtc})
Object.keys(this.channelMapping).forEach(this.swarm.addChannel)

var ircOptions = _.assign({
Expand Down
165 changes: 0 additions & 165 deletions lib/swarm.js

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"body-parser": "~1.11.0",
"check-env": "~1.2.0",
"commander": "~2.6.0",
"friends-swarm": "^1.0.0",
"ghsign": "^1.2.2",
"hyperlog": "^3.3.1",
"irc": "~0.3.9",
Expand Down
11 changes: 0 additions & 11 deletions schema.proto

This file was deleted.