hubot-dogecoin
Hubot script for tipping with Dogecoin.
Last updated 6 years ago by jico .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-dogecoin 
SYNC missed versions from official npm registry.

hubot-dogecoin Build Status

A hubot script for tipping with Dogecoin.

dogecoin

API

  • <user> +<n> doge - tip <user> <n> dogecoin (user by mention name)
  • doge register - get your dogecoin address
  • doge address - get your dogecoin address
  • doge balance - get your dogecoin balance
  • send <n|all> doge to <addr> - withdraw <n> or all doge to a dogecoin address

You can swap the doge keyword for one of such, much, so, very, or dogecoin. I.e. such address.

Requirements

  1. Hubot brain
  2. A dogecoind instance running either locally or on another box with the JSON RPC port open (default: 22555).
  3. Some dogecoin to give.

Installation

Add hubot-dogecoin as a dependency in your Hubot package.json.

"dependencies": {
  "hubot": "*",
  "hubot-dogecoin": "~0.0.1"
}

Run the following to install the package and its dependencies.

$ npm install

Add hubot-dogecoin to the array in external-scripts.json, you may need to create this file.

['hubot-dogecoin']

Configure the following environment variables in bin/hubot.

export HUBOT_DOGECOIND_USER="dogecoindrpcuser"
export HUBOT_DOGECOIND_PASS="dogecoindrpcpass"

export HUBOT_DOGECOIND_HOST="localhost" # optional, default: localhost
export HUBOT_DOGECOIND_PORT=22555       # Optional, default: 22555

Events

The following event hooks are emitted on successful dogecoind command executions.

@robot.emit 'dogecoin.getAddress', { user: user, address: result }
@robot.emit 'dogecoin.getBalance', { user: user, balance: result }
@robot.emit 'dogecoin.move', {
  sender:    sender
  recipient: recipient
  amount:    amount
}
@robot.emit 'dogecoin.sendFrom', {
  user:    user
  address: address
  amount:  amount
  txid:    result
}

Note: user is the entire user object from @robot.brain and result is the result of the corresponding dogecoind command.

Current Tags

  • 0.0.6                                ...           latest (6 years ago)

6 Versions

  • 0.0.6                                ...           6 years ago
  • 0.0.5                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           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 - 2016 © taobao.org |