hubot-paste
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.
Installation via NPM
-
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.json
file: -
Run your bot and see below for available config / commands
Configuration
Variable | Default | Description |
---|---|---|
PASTEBIN_API_KEY |
N/A | A unique developer API key is required to use Pastebin's API |
Commands
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 |
Sample Interaction
user1>> hubot pastebin Hello World!
hubot>> user1: http://pastebin.com/9jrTi80f