Reduced & updated dependencies.

By default, messages larger than 2.000 characters (sent via tells) get sent via slaves, if these exist.
Fixes #3
This commit is contained in:
2021-10-18 19:39:14 +02:00
parent dea25b05a5
commit bb445e868d
20 changed files with 124 additions and 152 deletions
+1 -15
View File
@@ -6,26 +6,12 @@ if ! [ -x "$(command -v $PYTHON_BINARY)" ]; then
fi
$PYTHON_BINARY --version
# Ensure virtualenv is present. This is not always the case
$PYTHON_BINARY -m pip install virtualenv --user
# Create and activate the virtualenv. This can be done even if it already exists
# and will ensure setuptools, wheel and pip are up to date
$PYTHON_BINARY -m virtualenv venv
source venv/bin/activate
# From there on we use 'pip' and 'python' (refers to versions in the virtualenv)
pip install -r requirements.txt
set -o pipefail -o errexit
# The bot uses non-zero exit codes to signal state.
# The bot will restart until it returns an exit code of zero.
while true; do
# shellcheck disable=SC1073
# shellcheck disable=SC1072
# shellcheck disable=SC1009
python bootstrap.py ##bot_name## && exit
python bootstrap.py "$1" && exit
sleep 1
done