An open API service indexing awesome lists of open source software.

https://github.com/brannondorsey/twilio-cleverbot

Talk to Cleverbot from your phone
https://github.com/brannondorsey/twilio-cleverbot

Last synced: about 1 month ago
JSON representation

Talk to Cleverbot from your phone

Awesome Lists containing this project

README

          

# Twilio-cleverbot

Text [Cleverbot](http://cleverbot.com) from your phone. Cleverbot responds at a rate that is modeled after a real person. Uses Node.js [Twilio](https://www.npmjs.org/package/twilio) and [Cleverbot-node](https://www.npmjs.org/package/cleverbot-node) on a server created with [Express](https://www.npmjs.org/package/express). If the Cleverbot API is down (see [this issue](https://github.com/brannondorsey/twilio-cleverbot/issues/1)), Twilio-cleverbot defaults to using the [Eliza chat bot](http://nlp-addiction.com/eliza/).

![Response Time Histogram](data/rate_histogram.png)

## Install

SSH into your server and run:

git clone git@github.com:brannondorsey/twilio-cleverbot.git
cd twilio-cleverbot
npm install

Open `twilio-cleverbot/config.sample.js` and populate it with your configuration:

```javascript
module.exports = {

accountSid:'your_twilio_account_Sid',
authToken:'your_twilio_auth_token',
twilioNumber:'your_twilio_number', // e.g. '+15692878254'
port: 3000
}
```

Rename `config.sample.js` to `config.js`.

## Run

Start the server from outside of the cloned directory:

node twilio-cleverbot

Text your Twilio number :)

## Upkeep

To keep your server running you need to start the process in the background. To do this start Twilio-cleverbot like this:

nohup node twilio-cleverbot &

__Note__: You may need a [screen](http://www.howtoforge.com/linux_screen) so that you can log off without exiting the server process.

Unfortunately, if the server crashes for some reason you won't be able to text Cleverbot. To automatically restart Twilio-cleverbot when it quits unexpectedly use [Forever](https://blog.nodejitsu.com/keep-a-nodejs-server-up-with-forever/):

npm install forever -g
forever start twilio-cleverbot

You can check if your server is up and running by pointing your browser to:

http://yourdomain:yourport

If it is running correctly you should get the following response:

"Twilio-cleverbot is running! Text +15692878254 to chat with Cleverbot."