Download CloudBot from https://github.com/TotallyNotRobots/CloudBot/archive/main.zip and unzip, or execute the following commands:
curl -Ls https://github.com/TotallyNotRobots/CloudBot/archive/main.zip > CloudBot.zip
unzip CloudBot.zip
cd CloudBot-mainAlternately, you can also clone CloudBot by using:
git clone https://github.com/TotallyNotRobots/CloudBot.git
cd CloudBotAll 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-dev and 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-dev git libxml2-dev libxslt-dev zlib1g-devYou 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.txtNow you are ready to run the bot! This can be done simply by executing the cloudbot module like so
python -m cloudbotor without activating the virtual environment, use
<VENV_DIR>/bin/python -m cloudbotTo quickly get the bot up and running without much customization
- Run
git clone https://github.com/TotallyNotRobots/CloudBot.git cd CloudBotpython3 -m venv venv --clearvenv/bin/python -m pip install -Ur requirements.txt- Copy
config.default.jsontoconfig.json, change settings as needed and validate it with jsonlint. - Run the bot while in the
CloudBotdirectoryvenv/bin/python -m cloudbot