Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 2.19 KB

nix.md

File metadata and controls

50 lines (37 loc) · 2.19 KB

Downloading

Archive

Download CloudBot from https://github.com/TotallyNotRobots/CloudBot/zipball/gonzobot.zip and unzip, or execute the following commands:

curl -Ls https://github.com/TotallyNotRobots/CloudBot/archive/gonzobot.zip > CloudBot.zip
unzip CloudBot.zip
cd CloudBot-gonzobot

Git

Alternately, you can also clone CloudBot by using:

git clone https://github.com/TotallyNotRobots/CloudBot.git
cd CloudBot

Installing Dependencies

All of CloudBot's python dependencies are stored in the requirements.txt file, and can be installed with pip.

But first, you will need git, python3.5-dev and libenchant1c2a, libxml2-dev, libxslt-dev and zlib1g-dev. Install these with your system's package manager.

For example, on a Debian-based system, you could use:

[sudo] apt-get install -y python3.5-dev git libenchant-dev libxml2-dev libxslt-dev zlib1g-dev

You will also need to install pip, which can be done by following this guide

It is also recommended that you create a virtual environment for the bot to isolate it from system library updates. First, install the venv package if required, and then create the virtual environment

We will refer to the virtual environment directory as <VENV_DIR> from here on.

Once the virtual environment is created, activate it.

Finally, install the python dependencies using pip using the following command in the CloudBot directory:

pip install -Ur requirements.txt

Now you are ready to run the bot! This can be done simply by executing the cloudbot module like so

python -m cloudbot

or without activating the virtual environment, use

<VENV_DIR>/bin/python -m cloudbot