0.0.6 • Published 7 years ago

hubot-thecodinglove v0.0.6

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

npm version Downloads Build Status dependency status devDependency status

NPM

hubot-thecodinglove

Display meme from \"The coding love http://thecodinglove.com\"

See index.js for full documentation.

Installation

In hubot project repo, run:

npm install hubot-thecodinglove --save

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

[
  "hubot-thecodinglove"
]

Sample Interaction

user>> hubot codinglove
hubot>> Searching in thecodinglove...
hubot>> How my boss thinks software development works…
hubot>> http://tclhost.com/4UPe44O.gif

Configuration

Set environment variables like these examples below.

Default:

export HUBOT_CODINGLOVE_SEARCH_TEXT="Searching text"
export HUBOT_CODINGLOVE_ERROR_TEXT="thecodinglove.com"
export HUBOT_CODINGLOVE_ERROR_IMG="http://tclhost.com/cn91mK3.gif"
export HUBOT_CODING_LOVE_SUCCESS_TEMPLATE=">{text}\n{image_src}"
export HUBOT_CODING_LOVE_ERROR_TEMPLATE=">{text}\n{image_src}"

Or if you want to disable the searching text message use:

export HUBOT_CODINGLOVE_SEARCH_TEXT="disabled"
user>> hubot codinglove
hubot>> How my boss thinks software development works…
hubot>> http://tclhost.com/4UPe44O.gif

You can also customize texts:

export HUBOT_CODINGLOVE_SEARCH_TEXT="disabled"
export HUBOT_CODINGLOVE_ERROR_TEXT="thecodinglove 💣😱"
export HUBOT_CODINGLOVE_ERROR_IMG="don't show this message"
export HUBOT_CODING_LOVE_ERROR_TEMPLATE="😧 {text}"
user>> hubot codinglove
hubot>> 😧 thecodinglove 💣😱
export HUBOT_CODINGLOVE_SEARCH_TEXT="disabled"
export HUBOT_CODING_LOVE_SUCCESS_TEMPLATE="codinglove: {text} {image_src}"
user>> hubot codinglove
hubot>> codinglove: How my boss thinks software development works… http://tclhost.com/4UPe44O.gif

NPM Module

https://www.npmjs.com/package/hubot-thecodinglove

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago