nwitch-bitcoin-price
nwitch plugin for getting bitstamp's last sell price
Last updated 4 years ago by kenan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install nwitch-bitcoin-price 
SYNC missed versions from official npm registry.

nwitch-bitcoin-price

Build Status Dependency Status

nwitch (and slate-irc) plugin for getting Bitstamp's last sell price.

15:44 <KenanY> !bitcoin
15:44 <nwitch> Last Bitcoin price: $636.36

Example

As a nwitch plugin (using config.toml):

[plugins]
nwitch-bitcoin-price = true

Or through nwitch's API:

var Nwitch = require('nwitch');
var nwitchBitcoinPrice = require('nwitch-bitcoin-price');

var nwitch = new Nwitch({
  irc: {
    address: 'irc.freenode.org',
    port: 6667
  }
});

nwitch.use(nwitchBitcoinPrice());

Technically, all nwitch plugins are just slate-irc plugins, so you could also use this as a slate-irc plugin:

var net = require('net');
var irc = require('slate-irc');
var nwitchBitcoinPrice = require('nwitch-bitcoin-price');

var stream = net.connect({
  port: 6667,
  host: 'irc.freenode.org'
});

var client = irc(stream);
client.use(nwitchBitcoinPrice());

Installation

$ npm install nwitch-bitcoin-price

API

var nwitchBitcoinPrice = require('nwitch-bitcoin-price');

nwitchBitcoinPrice()

Returns a function that accepts an instance of slate-irc.

Current Tags

  • 1.0.3                                ...           latest (4 years ago)

6 Versions

  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (4)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |