Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hubot-mood

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hubot-mood

A hubot bot to manage your team's mood

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

hubot-mood

A simple hubot script to store your team's mood and get some metrics about it.

Installation

You have of course to get a working installation of hubot first.

Add hubot-mood to the package.json of your hubot setup, then npm install it.

Storage is done through redis. You have to set the redis url into the HUBOT_MOOD_REDIS_URL env var, eg.:

export HUBOT_MOOD_REDIS_URL=redis://user:password@dory.redistogo.com:9553/

Last, link the mood.js bot script into your own scripts folder:

ln -sf ../node_modules/hubot-mood/scripts/mood.js scripts/mood.js

By default, it will try to use redis://localhost:6379.

Commands

The bot will respond to several commands:

mood set "<sunny|cloudy|rainy|stormy>"
mood of|for <(nickname)|me>
mood today
mood yesterday
mood week of|for <(nickname)|me>
mood month of|for <(nickname)|me>

Demo (purely fictional, if you asked):

<NiKo`> scopybot: mood set sunny
<scopybot> Recorded entry: NiKo` is in a sunny mood today
<NiKo`> scopybot: mood today
<scopybot> Today's moods:
<scopybot> - NiKo` is in a sunny mood
<scopybot> - pointbar is in a sunny mood
<scopybot> - vinyll is in a sunny mood
<scopybot> - david`bgk is in a sunny mood
<NiKo`> scopybot: mood week of NiKo`
▃▅▇▅▃▅▇
<NiKo`> scopybot: mood month of NiKo`
▃▅▇▅▃▅▇▃▅▇▅▃▅▇▃▅▇▅▃▅▇▃▅▇▇▅▇▅▇

Tests

Install mocha and async, then run the suite from the root of the repository by running the mocha command.

Note: Testing requires a live redis server instance running on redis://localhost:6379. Don't worry, it won't erase your data.

Why?

Because sharing our mood is informative and ease collaboration.

License

MIT.

Keywords

FAQs

Package last updated on 02 Feb 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc