errbotio / errbot

Errbot is a chatbot, a daemon that connects to your favorite chat service and bring your tools and some fun into the conversation.
http://errbot.io
GNU General Public License v3.0
3.12k stars 612 forks source link

IRC backend doesn't work #1566

Closed ArchFeh closed 2 years ago

ArchFeh commented 2 years ago

Describe the bug IRC backend doesn't work, raise TypeError: connect() got an unexpected keyword argument 'reconnection_interval'

To Reproduce my config.py

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

BACKEND = 'IRC'  # Errbot will start in text mode (console only mode) and will answer commands from there.

BOT_DATA_DIR = r'/home/archfeh/errbot/data'
BOT_EXTRA_PLUGIN_DIR = r'/home/archfeh/errbot/plugins'

BOT_LOG_FILE = r'/home/archfeh/errbot/errbot.log'
BOT_LOG_LEVEL = logging.DEBUG

BOT_ADMINS = ('@ArchFeh[m]', )  # !! Don't leave that to "@CHANGE_ME" if you connect your errbot to a chat system !!

BOT_IDENTITY = {
    'nickname' : 'err-chatbot',
    # 'username' : 'err-chatbot',    # optional, defaults to nickname if omitted
    # 'password' : None,             # optional
    'server' : 'irc.freenode.net',
    # 'port': 6667,                  # optional
    # 'ssl': False,                  # optional
    # 'ipv6': False,                 # optional
    # 'nickserv_password': None,     # optional

    ## Optional: Specify an IP address or hostname (vhost), and a
    ## port, to use when making the connection. Leave port at 0
    ## if you have no source port preference.
    ##    example: 'bind_address': ('my-errbot.io', 0)
    # 'bind_address': ('localhost', 0),
}

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

Screenshots 6.1.7 image 6.1.8 image

Environment (please complete the following information):

Additional context Add any other context about the problem here.

nzlosh commented 2 years ago

I'm able to reproduce this error. You can workaround the issue by downgrading to irc==19.0.1, it looks like the backend needs to be updated for irc v20.0