https://github.com/hubot-archive/hubot-sentimental
A hubot adapter for tracking happiness levels of users in an IRC channel via the Sentimental database
https://github.com/hubot-archive/hubot-sentimental
Last synced: 2 months ago
JSON representation
A hubot adapter for tracking happiness levels of users in an IRC channel via the Sentimental database
- Host: GitHub
- URL: https://github.com/hubot-archive/hubot-sentimental
- Owner: hubot-archive
- License: mit
- Created: 2014-06-27T15:36:51.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-02-22T15:09:23.000Z (over 9 years ago)
- Last Synced: 2025-03-24T15:21:47.848Z (3 months ago)
- Language: CoffeeScript
- Homepage:
- Size: 9.77 KB
- Stars: 28
- Watchers: 5
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hubot Sentimental Adapter
## Description
This Hubot adapter uses the [Sentimental](https://github.com/thinkroth/Sentimental)
node package to score how positive or negative the spoken words being used in your room are.
As users speak we will analyze how positive or negative your words are using Sentimental
and keep a running average. You can then ask how everyone is doing by using one of the following commands.```
Hubot check on jsolis
```
```
Hubot check on everyone
```See [`src/sentimental.coffee`](src/sentimental.coffee) for full documentation.
## Data
[](https://nodei.co/npm/hubot-sentimental.png?downloads=true&stars=true)## Installation
In hubot project repo, run:
`npm install hubot-sentimental --save`
Then add **hubot-sentimental** to your `external-scripts.json`:
```json
["hubot-sentimental"]
```
You will need to set one environment variable to use this adapter.```
export REDISTOGO_URL=redis://redis-server:redis-port-number
```## Sample Interaction
```
Hubot> Hubot check on jsolis
Hubot> jsolis has a happiness average of 0.9672131147540983
```## Contribute
Just send pull request or file an issue !
## Configuration
### `HUBOT_SENTIMENTAL_QUIET`
Make the bot a little more quiet.
## Copyright
Copyright © Jason Solis. See LICENSE for details.