https://github.com/mguida22/rappin-robot
A robot that raps :fire:
https://github.com/mguida22/rappin-robot
Last synced: 4 months ago
JSON representation
A robot that raps :fire:
- Host: GitHub
- URL: https://github.com/mguida22/rappin-robot
- Owner: mguida22
- License: mit
- Created: 2015-10-28T07:55:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-16T23:30:25.000Z (over 9 years ago)
- Last Synced: 2025-01-08T18:22:32.867Z (5 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rappin-robot
A [robot](https://twitter.com/rappin_robot) that raps.
## Sample Outputs
```
A description is a friction from the right perspective
A kettle is a stative retrospectiveFew can name a fulgid porter that isn't a feckless slash
A restaurant is a berry from the right hashA hydrant is a control from the right perspective
In recent years, memories are quenchless detective
```## Setup
Note: this project requires node 4.2.1+
### Install
```
$ git clone
$ cd rappin-robot
$ npm install
```### Add .env
Create a `.env` file in the root directory and add the [twitter credentials](https://dev.twitter.com/) key in the following format:
```
T_CONSUMER_KEY=
T_CONSUMER_SECRET=
T_ACCESS_TOKEN=
T_ACCESS_TOKEN_SECRET=
NODE_ENV=
```You can set the `NODE_ENV` to either `production` (tweets to your account, you will need credentials) or `development` (outputs to console, no credentials required).
### Run
```
$ node main.js
```### Heroku
This program makes use of [heroku's scheduler](https://devcenter.heroku.com/articles/scheduler) to run one off tasks on an interval. This allows the program to automatically run every hour (only posts to twitter if it got a rhyme).
To push changes to heroku
```
$ git push heroku master
```To manually run the task (while logged in)
```
$ heroku run worker
```## License
MITThis project makes heavy use of the work provided by:
- [kylestetz/Sentencer](https://github.com/kylestetz/Sentencer)
- [dariusk/pos-js](https://github.com/dariusk/pos-js)
- [cmusphinx/cmudict](https://github.com/cmusphinx/cmudict)