Local instance template for Fritbot
Congratulations! You've taken the first step into Fritbot's sweet, sweet embrace. By cloning this repository, you're welcoming Fritbot into your life. You will be happier for it.
This instance has the following modules pre-installed for your convenience:
- You must have node installed
- You must have Mongo server running locally, or running remotely and the db_url configuration option appropriately set.
- Fork this repository (If you want to commit your own changes) and clone it to your machine.
- Run
npm install
in your local directory to install dependencies. - Test it out in the shell by running
node index
Simply add the connector and modules you want to the dependencies in package.json
and run npm install
.
- Install and configure a connection to a chat server, for example the XMPP connector.
- Install and configure additional modules.
- After connector and modules are installed, restart the bot. The bot should connect to your chat server.
Ensure you have one of the several Mongo add-ons available from Heroku set up. Copy the URL environment variable (ex MONGOLAB_URI
) into a FB_DB_URL
variable so the bot knows where the database is located.
Add the Heroku remote to your local repository and run git push heroku master
. The default configuration provided in this instance will be sufficient.
If all goes well, your bot instance should push to Heroku and the dynos should restart within a few minutes. If not, running heroku logs
will pull the logs from Heroku and hopefully help you diagnose any issues.