0.1.2 • Published 6 years ago

hubot-ipfs v0.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

hubot-ipfs

Cool robot saying "I have pinned the things"

A hubot script that lets you interact with a local IPFS daemon, including pinning files.

This is a script/plugin-ified version of the ipfs.coffee script by @jbenet: https://github.com/ipfs/ipfs-hubot

Commands

  • hubot pin QmDEADBEEF... -- pin files
  • hubot ipfs api-info -- show configured local and global gateways
  • hubot ipfs swarm peers
  • and almost all other go-ipfs daemon commands
  • See src/ipfs.coffee for full documentation.

Ouput Looks like this:

hubot> hubot ipfs pin QmXXXXXXXXXXXXXXXXXXx
hubot> TODO FIXME show don't tell. Add a screenshot

Installation

This assumes you already have setup a Hubot.

In your hubot project repository, run:

npm install hubot-ipfs --save

Then add hubot-ipfs to your external-scripts.json:

[
  "hubot-ipfs"
]

Configuration

Some things in life you can't change, but these things you can.

Development

Clone this repository, then:

npm install

To run tests:

npm test

To actually work on the script, it's easiest to setup a Hubot and include your local hubot-ipfs plugin as a dependency. e.g. in the hubot's package.json, something like:

 	"dependencies": {
    "hubot": "^2.19.0",
    "hubot-ipfs": "file:~/dev/hubot-ipfs"
  },

Protip: try out the hubot-reload plugin so you don't have to restart your REPL on changes

Publishing a new version

npm run semantic-release

Contribute

Feel free to join in. All welcome. Open an issue!

This repository falls under the IPFS Code of Conduct.

Want to hack on IPFS?

npm.io

License

MIT © Protocol Labs Inc.

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago