Skip to content

markhuge/posicon-hipchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

posicon-hipchat Build Status

Contextual emoticons for hipchat

Install

npm install posicon --save

(WTF is the point?)

I wanted to attach random (but contextually valid) emoticons to hubot msgs in hipchat.

Example:

{icon} = require('posicon')

msg.send data.response + icon(data.status) 

Methods

  • icon(methodName) - Allows you to pass in one of the below methods by name, instead of invoking them as functions. Handy for passing in status labels.
  • success() - returns a random success icon
  • failure() - returns a random failure icon
  • unknown() - returns a random unknown icon

Sugar methods:

All of these are the same as success():

  • win
  • good
  • ok
  • successful

All of these are the same as failure():

  • fail
  • bad
  • error

About

Contextual emoticons for hipchat

Resources

License

Stars

Watchers

Forks

Packages

No packages published