Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Installation

Sam edited this page May 17, 2016 · 6 revisions

Want to run the bot on your own system? This page will tell you most of what you need to know.

##Windows##

You'll need:

  • .NET 4.5 framework installed or Mono 2.1
  • Visual Studio 2012 or higher (optional but encouraged)
  • Postgresql. This can be on a separate computer but needs to be accessible through the network.

##Configuration##

Depending on how you are running the program the method for setting configuration

###Environment Variables### The first place the program will look for values are

  1. Read the settings-sample.json file.
  2. Set environment variables with the same names as the key values in the json file.

###Json File###

  1. Copy the settings-sample.json file into the same directory as the exe. Call it settings.json.
  2. Customize the values as needed.

##Docker## This program can be ran in docker. This is by far the easiest method of running the program. You don't need to worry about installing dependencies or setting up Posgresql - all of that will be done for you in an isolated environment.

Follow these steps to get it running:

  1. Make sure you have docker and docker compose installed.
  2. From the root of the repository run ./build.sh. This runs docker build -t socvr/chatbot .. You can change the name of the image that will be built by swapping out socvr/chatbot.
  3. Make a copy of the docker-compose.yml.example file and remove the .example from the end. Edit and customize the settings within to your liking. If you changed the name of the image in the previous step, update the value in this file as well.
  4. Run docker-compose up -d to create and start the containers.
Clone this wiki locally