Skip to content

Update to the latest version #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 46 commits into from
Aug 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
d5ce6ce
chore: Update changelog and vcheck for 6.1.8
sijis Jun 21, 2021
934ba5d
Fix success handling for update_repos (#1520)
bboe Jul 11, 2021
c81c30d
Fix cascade dependency plugins (#1519)
Nov1kov Jul 11, 2021
574f66d
Reload all repo plugins when updating a repo (#1521)
bboe Jul 12, 2021
b846d1a
refactor: Set default backend to Text (#1522)
sijis Jul 16, 2021
41e80cb
Correct syntax error `false` -> `False` (#1524)
bboe Jul 19, 2021
7ff1e64
fix: add stream to Text backend (#1527)
sijis Aug 10, 2021
af358ff
chore: remove HipChat backend (#1525)
sijis Aug 10, 2021
896f69d
fix: tests on test backend (#1535)
sijis Oct 6, 2021
a88daa1
Adds ability to divert all to private or thread (#1528)
sijis Oct 6, 2021
a148c86
fix: minor logging enhancements (#1536)
sijis Oct 9, 2021
4609a0e
Add type hints to core and backend functions (#1542)
duhow Oct 16, 2021
09316c0
style: format template files (#1541)
sijis Oct 16, 2021
06721e7
Update README to replace deprecated add-on (#1546)
ciaranjordan Dec 3, 2021
be469b1
Adjust python version of plugins for current specs (#1543)
attakei Dec 3, 2021
db9e0bc
Add deprecation notice to Slack and SlackRTM backends (#1526)
sijis Dec 11, 2021
e36bafa
chore: remove python 3.6 (#1540)
sijis Dec 18, 2021
66e1de8
Add python 3.10 to automated testing (#1539)
nzlosh Dec 20, 2021
7337519
Update documentation (#1552)
nzlosh Jan 23, 2022
465f8e3
chore: Create issue templates (#1554)
sijis Jan 29, 2022
b5e286c
chore: pin all package dependencies (#1553)
sijis Feb 14, 2022
310531a
Use errbot log level with webserver for consistent logging (#1556)
nzlosh Feb 23, 2022
9aad157
Prevent infinite loop when only BOT_PREFIX passed (#1557)
davidamin Feb 23, 2022
47b614d
fix: typo in pinned dependency (#1559)
sijis Feb 23, 2022
89ccd00
chore(deps): bump actions/setup-python from 2 to 3.1.0 (#1563)
dependabot[bot] Apr 7, 2022
9a6287b
Remove unsupport argument reconnection_interval from irc backend. (#1…
nzlosh May 4, 2022
c8dae1f
Update Gentoo package manager support (#1567)
May 4, 2022
71e789e
chore: Set permissions for GitHub actions (#1565)
naveensrinivasan May 4, 2022
924efe0
chore(deps): bump actions/setup-python from 3.1.0 to 3.1.2 (#1564)
dependabot[bot] Jun 8, 2022
76845ea
Don't use str(room) for acl matches (#1530)
webpigeon Jun 8, 2022
2b56971
fix: circular dependencies error when there are none (#1505)
browniebroke Jun 8, 2022
ae06022
Refactor: Dockerfile (#1571)
sijis Jun 10, 2022
94daaee
chore: Update changelog and vcheck for 6.1.9
sijis Jun 11, 2022
774b425
docs: add unreleased section (#1576)
sijis Jun 15, 2022
345b04a
URL not woking in README (#1572)
fernand0 Jun 15, 2022
1753ee3
chore(deps): bump actions/setup-python from 3.1.2 to 4.0.0 (#1575)
dependabot[bot] Jun 15, 2022
f30a5fe
fix missing imports in telegram_messenger.py (#1574)
futex Jun 15, 2022
9b2bcc8
chore: ci improvements (python, docker build) (#1577)
sijis Jun 20, 2022
4383dc9
fix: only build docker when running under org (#1583)
sijis Jun 20, 2022
b39ed96
chore: add docs build to ci (#1582)
sijis Jun 20, 2022
7d38085
Fix forward references in XMPP backend (#1580)
ariep Jun 22, 2022
893ad12
fix: remove campfire references (#1584)
sijis Jun 24, 2022
16a6fa8
Update exception if installing on Python <3.7 (#1585)
browniebroke Jun 24, 2022
3f5abef
docs: Fix a few typos (#1589)
timgates42 Jul 10, 2022
791a08b
Feature: plugins detection using entrypoints (#1590)
sijis Jul 14, 2022
b1a6408
refactor: remove built-in slack backend (#1581)
sijis Jul 21, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: 'type: bug'
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Provide steps to reproduce the behavior or include sample plugin code.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information):**
- Errbot version:
- OS version:
- Python version:
- Using a virtual environment: yes/no
- Using Docker: yes/no

**Additional context**
Add any other context about the problem here.
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: 'type: feature'
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Is feature related to**

- [ ] Backend support
- [ ] Plugins (storage, flows)
- [ ] Functionality
- [ ] Other

**Additional context**
Add any other context or screenshots about the feature request here.
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/support---running-bot-or-plugins.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Support - Running bot or plugins
about: Requesting help with running errbot
title: ''
labels: 'type: support/question'
assignees: ''

---

**Need help with**

- [ ] Running the bot
- [ ] Writing plugin
- [ ] Other

**Issue description**
Please describe the issue. The more information you can provide, the better.

**Steps to reproduce**
Provide steps to reproduce the behavior or include sample plugin code.

**Environment (please complete the following information):**
- Errbot version:
- OS version:
- Python version:
- Using a virtual environment: yes/no
- Using Docker: yes/no


**Additional info**
If you have any more information, please specify it here.
28 changes: 28 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build docker image

on:
push:
branches:
- master

permissions:
contents: read

jobs:
build:
if: github.repository_owner == 'errbotio'
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v2

- name: build and push docker image
uses: mr-smithers-excellent/docker-build-push@v5
with:
image: errbotio/errbot
tags: latest
registry: docker.io
dockerfile: Dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
20 changes: 14 additions & 6 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,22 @@ on:
pull_request:
branches: [ master ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9, "3.10"]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4.0.0
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -38,21 +41,26 @@ jobs:
tox -e py
- name: Check Distribution
if: ${{ matrix.python-version == '3.8' }}
if: ${{ matrix.python-version == '3.9' }}
run: |
tox -e dist-check
- name: Codestyle
if: ${{ matrix.python-version == '3.8' }}
if: ${{ matrix.python-version == '3.9' }}
run: |
tox -e codestyle
- name: Lint - sort
if: ${{ matrix.python-version == '3.8' }}
if: ${{ matrix.python-version == '3.9' }}
run: |
tox -e sort
- name: Security
if: ${{ matrix.python-version == '3.8' }}
if: ${{ matrix.python-version == '3.9' }}
run: |
tox -e security
- name: Docs
if: ${{ matrix.python-version == '3.9' }}
run: |
tox -e docs
66 changes: 65 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,68 @@
v6.1.8 (unreleased)
v9.9.9 (unreleased)
-------------------

breaking:

- backend/slack: remove slack and slack_rtm built-in backends (#1581)

features:

- core/plugins: detect plugins using entrypoints (#1590)

fixes:

- docs: add unreleased section (#1576)
- docs: update broken URL for Markdown Extra (#1572)
- chore: bump actions/setup-python version (#1575)
- backend/telegram: fix missing imports (#1574)
- chore: ci improvements (#1577, #1583)
- chore: add docs build to ci (#1582)
- backend/xmpp: fix forward type references (#1578)
- chore: remove campfire references (#1584)
- chore/setup: fix exception when installing on python <3.7 (#1585)
- docs: typos (#1589)


v6.1.9 (2022-06-11)
-------------------

features:

- core: set default backend to Text (#1522)
- core: option to divert all commands to private or thread (#1528)
- core: add type hints to core and backend functions (#1542)
- docs: add ACL and numerous backends to official documentation (#1552)
- core: add Python 3.10 to automated tests (#1539)
- core: add room acl attribute (#1530)
- chore: refactor Dockerfile errbot install and python version bump (#1571)

fixes:

- core: success handling for update_repos (#1520)
- core/plugins: cascade dependency plugins (#1519)
- core/plugins: reload all repo plugins when updating a repo (#1521)
- plugin_manager: correct syntax error (#1524)
- backend/text: add stub send_stream_request method (#1527)
- backend/hipchat: remove HipChat backend (#1525)
- backend/test: shutdown sequence to address test failure (#1535)
- core: various minor logging improvements (#1536)
- chore: various minor formatting improvements (#1541)
- docs: update spark plugin reference (#1546)
- fix: python 2 version references in docs and init template (#1543)
- backends: deprecate built-in Slack and SlackRTM (#1526)
- chore: remove python 3.6 checks and test environment (#1540)
- chore: add/update issue templates (#1554)
- chore: pin all package dependencies (#1553, #1559)
- core/webserver: use errbot loglevel for consistent logging. (#1556)
- fix/core: prevent infinite loop when only BOT_PREFIX is passed (#1557)
- chore: bump actions/setup-python from 2 to 3.1.0 (#1563)
- chore: Set permissions for GitHub actions (#1565)
- fix: removed deprecated argument reconnection_interval for irc v20.0 (#1568)
- docs: Add Gentoo packages (#1567)
- chore: bump actions/setup-python from 3.1.0 to 3.1.2 (#1564)
- fix: circular dependencies error when there are none (#1505)

v6.1.8 (2021-06-21)
-------------------

features:
Expand Down
27 changes: 18 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
FROM python:3.8-slim as BUILD
FROM python:3.9-slim as build
WORKDIR /wheel
COPY . .
RUN pip3 wheel --wheel-dir=/wheel \
errbot errbot[irc] errbot[slack] errbot[XMPP] errbot[telegram]
RUN apt update && apt install -y build-essential git
RUN cd /tmp && \
git clone https://github.com/errbotio/err-backend-slackv3 slackv3
RUN pip3 wheel --wheel-dir=/wheel . \
-r /tmp/slackv3/requirements.txt wheel \
errbot errbot[irc] errbot[XMPP] errbot[telegram] && \
cp /tmp/slackv3/requirements.txt /wheel/slackv3-requirements.txt

FROM python:3.8-slim
COPY --from=BUILD /wheel /wheel
FROM python:3.9-slim as base
COPY --from=build /wheel /wheel
RUN apt update && \
apt install -y git && \
cd /wheel && \
pip3 -vv install --no-cache-dir --no-index --find-links /wheel \
errbot errbot[irc] errbot[slack] errbot[XMPP] errbot[telegram] && \
pip3 -vv install --no-cache-dir --no-index --find-links /wheel . \
-r /wheel/slackv3-requirements.txt \
errbot errbot[irc] errbot[XMPP] errbot[telegram] && \
rm -rf /wheel /var/lib/apt/lists/*

RUN useradd -m errbot
USER errbot

FROM base
EXPOSE 3141 3142
VOLUME /home/errbot
WORKDIR /home/errbot
USER errbot
RUN errbot --init
RUN git clone https://github.com/errbotio/err-backend-slackv3 backend-plugins/slackv3
ENTRYPOINT [ "/usr/local/bin/errbot" ]
18 changes: 8 additions & 10 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,15 @@ Chat servers support
**Built-in**

- IRC support
- `Hipchat support <http://www.hipchat.com/>`_
- `Slack support <https://slack.com/>`_
- `Telegram support <https://www.telegram.org/>`_
- `XMPP support <http://xmpp.org>`_

**With add-ons**

- `CampFire <https://campfirenow.com/>`_ (See `instructions <https://github.com/errbotio/err-backend-campfire>`__)
- `Cisco Spark <https://www.ciscospark.com/>`_ (See `instructions <https://github.com/marksull/err-backend-cisco-spark>`__)
- `Discord <https://www.discordapp.com/>`_ (See `instructions <https://github.com/gbin/err-backend-discord>`__)
- `Slack support <https://slack.com/>`_ (See `instructions <https://github.com/errbotio/err-backend-slackv3>`__)
- `Discord <https://www.discordapp.com/>`_ (See `instructions <https://github.com/errbotio/err-backend-discord>`__)
- `Gitter support <https://gitter.im/>`_ (See `instructions <https://github.com/errbotio/err-backend-gitter>`__)
- `Webex <https://www.webex.com/>`_ (See `instructions <https://github.com/marksull/err-backend-cisco-webex-teams>`__)
- `Mattermost <https://about.mattermost.com/>`_ (See `instructions <https://github.com/Vaelor/errbot-mattermost-backend>`__)
- `RocketChat <https://rocket.chat/>`_ (See `instructions <https://github.com/cardoso/errbot-rocketchat>`__)
- `Skype <https://www.skype.com/>`_ (See `instructions <https://github.com/errbotio/errbot-backend-skype>`__)
Expand Down Expand Up @@ -81,14 +79,14 @@ Developer features
- Presetup storage for every plugin i.e. ``self['foo'] = 'bar'`` persists the value.
- Conversation flows to track conversation states from users.
- Webhook callbacks support
- supports `markdown extras <https://pythonhosted.org/Markdown/extensions/extra.html>`_ formatting with tables, embedded images, links etc.
- supports `markdown extras <https://markdown-extra.readthedocs.io/>`_ formatting with tables, embedded images, links etc.
- configuration helper to allow your plugin to be configured by chat
- Text development/debug consoles
- Self-documenting: your docstrings become help automatically
- subcommands and various arg parsing options are available (re, command line type)
- polling support: your can setup a plugin to periodically do something
- end to end test backend
- card rendering under Slack and Hipchat.
- card rendering under Slack

Community and support
---------------------
Expand Down Expand Up @@ -132,12 +130,12 @@ It will show you a prompt `>>>` so you can talk to your bot directly! Try `!help
Adding support for a chat system
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For the built-ins, just use one of those options `slack, hipchat, telegram, IRC, XMPP` with pip, you can still do it
For the built-ins, just use one of those options `telegram, IRC, XMPP` with pip, you can still do it
after the initial installation to add the missing support for example ::

$ pip install "errbot[slack]"
$ pip install "errbot[irc]"

For the external ones (Skype, Gitter, Discord etc ...), please follow their respective github pages for instructions.
For the external ones (Slack, Discord, Gitter, Skype, etc ...), please follow their respective github pages for instructions.

Configuration
~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion docs/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Publishing to Read the Docs
Read the Docs should rebuild the site automatically when new commits are pushed.
When new project releases are made, it may be necessary to add the new version
and remove older versions (to prevent clutter in the version drop-down).
This can be done at https://readthedocs.org/dashboard/errbot/versions/.
This can be done at https://readthedocs.org/projects/errbot/versions/.


.. _Sphinx: http://sphinx-doc.org/
Expand Down
2 changes: 1 addition & 1 deletion docs/_static/fancybox/jquery.fancybox.js
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@
coming.scrolling = 'scroll';
}

// Build the neccessary markup
// Build the necessary markup
coming.wrap = $(coming.tpl.wrap).addClass('fancybox-' + (isTouch ? 'mobile' : 'desktop') + ' fancybox-type-' + type + ' fancybox-tmp ' + coming.wrapCSS).appendTo(coming.parent || 'body');

$.extend(coming, {
Expand Down
Binary file removed docs/_static/screenshots/quota.png
Binary file not shown.
Binary file removed docs/_static/screenshots/thumb_quota.png
Binary file not shown.
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
exclude_patterns = [
'_build',
'error_pages/*',
'errbot.backends.campfire.rst', # Broken on Python 3
'errbot.backends.tox.rst', # Also quite a pain to build at this stage
'_gh-pages',
]
Expand Down
Loading