1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 17:56:53 +02:00

update errbot

This commit is contained in:
kev 2024-05-14 18:15:03 +08:00
parent 2c73b5e086
commit fa37a10f2f
3 changed files with 14 additions and 18 deletions

View File

@ -12,17 +12,11 @@ RUN set -xe \
libffi-dev \
openssl \
openssl-dev \
py3-pip \
python3 \
python3-dev \
&& pip3 install --no-cache-dir -U pip \
&& pip3 install --no-cache-dir errbot \
hypchat \
irc \
pyasn1 \
pyasn1-modules \
python-telegram-bot \
slackclient \
sleekxmpp \
&& rm -f /usr/lib/python3.11/EXTERNALLY-MANAGED \
&& pip3 install --no-cache-dir 'errbot[slack,discord,mattermost,IRC,telegram,XMPP]' \
&& adduser -s /bin/sh -h /opt/errbot -D errbot \
&& apk del --purge build-base \
libffi-dev \

View File

@ -6,28 +6,27 @@ errbot
[Errbot][1] is a chatbot, a daemon that connects to your favorite chat service
and brings your tools into the conversation.
## up and running
```bash
$ mkdir -m 777 data
$ mkdir -m 777 -p data
$ docker-compose run --rm errbot --init
$ vim data/config.py
$ docker-compose up -d
$ docker-compose exec --user root errbot sh
>>> apk add -U py3-lxml
>>> apk add --no-cache py3-lxml
>>> chmod 777 /usr/lib/python3.11/site-packages
>>> chmod 777 /usr/lib/python3.11/site-packages/__pycache__
>>> exit
```
Check the example config.py [here][2].
Please read sample [config.py][2] and [setup][3].
## chat-ops
```
master [8:50 PM] !tryme
errbot [8:50 PM] It works!
master [8:50 PM] !about
errbot [8:50 PM] This is Errbot version 6.2.0
master [8:51 PM] !help
errbot [8:51 PM] All commands ...
@ -86,4 +85,5 @@ errbot [8:56 PM]
```
[1]: http://errbot.io
[2]: http://errbot.io/en/latest/_downloads/config-template.py
[2]: https://github.com/errbotio/errbot/blob/master/errbot/config-template.py
[3]: https://errbot.readthedocs.io/en/latest/user_guide/setup.html

View File

@ -3,7 +3,9 @@ import logging
# This is a minimal configuration to get you started with the Text mode.
# If you want to connect Errbot to chat services, checkout
# the options in the more complete config-template.py from here:
# https://raw.githubusercontent.com/errbotio/errbot/master/errbot/config-template.py
# https://github.com/errbotio/errbot/blob/master/errbot/config-template.py
# Also see:
# https://errbot.readthedocs.io/en/latest/user_guide/setup.html
BACKEND = 'SlackV3'
@ -20,6 +22,6 @@ BOT_EXTRA_PLUGIN_DIR = '/opt/errbot/plugins'
BOT_LOG_FILE = '/opt/errbot/errbot.log'
BOT_LOG_LEVEL = logging.DEBUG
BOT_ADMINS = ('@master', )
BOT_ADMINS = ('@master',)
AUTOINSTALL_DEPS = True