A Hubot script for creating a new paste on several online services: Dpaste.com, Sprunge.us, and Pastebin.com.
See src/paste.coffee for full documentation.
-
Install the hubot-paste module as a Hubot dependency by running:
npm install --save hubot-paste -
Enable the module by adding the hubot-paste entry to your
external-scripts.jsonfile:[ "hubot-paste" ] -
Run your bot and see below for available config / commands
| Variable | Default | Description |
|---|---|---|
PASTEBIN_API_KEY |
N/A | A unique developer API key is required to use Pastebin's API |
| Command | Listener ID | Description |
|---|---|---|
hubot dpaste content |
paste.dpaste.new |
Creates a new paste with content on Dpaste.com |
hubot sprunge content |
paste.sprunge.new |
Creates a new paste with content on Sprunge.us |
hubot pastebin content |
paste.pastebin.new |
Creates a new paste with content on Pastebin.com |
user1>> hubot pastebin Hello World!
hubot>> user1: http://pastebin.com/9jrTi80f