Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Installation

Henri Salo edited this page Dec 29, 2019 · 22 revisions

Manually installing pyfibot to a virtualenv

Preconditions

You'll need a few system packages to install the bot; build-essential and python-dev to install Twisted. To fetch the bot from GitHub, git is required. The rest are libraries used to build some of the packages installed via pip.

You can install them all with:

sudo apt-get install git build-essential python-dev python-pip python-virtualenv libxml2-dev libxslt-dev libssl-dev zlib1g-dev libyaml-dev libffi-dev pipenv

Install

Clone pyfibot from GitHub, setup virtualenv, upgrade tools and install requirements.

$ git clone https://github.com/lepinkainen/pyfibot.git
$ cd pyfibot
$ pipenv install

Starting the bot

Now you can edit the example configuration to suit your needs and rename it to config.yml

$ cp example.yml config.yml
$ $EDITOR config.yml
$ pipenv run pyfibot/pyfibot.py config.yml

Now the bot should be up and running.

Running with docker (DEPRECATED FOR NOW)

Edit the example configuration file and save it to the docker host.

Get the docker image:

docker pull lepinkainen/pyfibot

Run it:

docker run -v /path/to/config.yml/:/config lepinkainen/pyfibot

Done!