Skip to content

tenfourty/hubot-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hubot-counter Build Status

deprecated in favour of hubot-plusplus

This script allows hubot to count whenever you ++ or -- something, for example:

user1>> My coffee++ just woke me up!
hubot>> coffee: 1
user1>> meetings--
hubot>> meetings: -1

Commands: hubot get count - get the current count of you can increment with item++ and decrement with item--

user1>> hubot get count coffee
hubot>> coffee: 1!

See src/counter.coffee for full documentation.

Installation

In hubot project repo, run:

npm install hubot-counter --save

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

[
  "hubot-counter"
]

Sample Interaction

user1>> My coffee++ just woke me up!
hubot>> coffee: 1
user1>> meetings--
hubot>> meetings: -1
user1>> hubot get count coffee
hubot>> coffee: 1!

About

This script allows hubot to count whenever you ++ or -- something

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published