UNPKG

ferment

Version:

Peer-to-peer audio publishing and streaming application. Like SoundCloud but decentralized. A mashup of ssb, webtorrent and electron.

23 lines (19 loc) 546 B
#!/usr/bin/env node var config = require('../lib/ssb-config')('ferment') var createClient = require('ssb-client') var schemas = require('ssb-msg-schemas') var mlib = require('ssb-msgs') var id = process.argv[2] var link = mlib.link(id, 'feed') if (link) { createClient(config.keys, config, (err, client) => { if (err) throw err client.publish(schemas.unfollow(id), (err, msg) => { if (err) throw err console.log(msg) process.exit() }) }) } else { console.log('You need to specify a feed id to unfollow.') }