j0ack / discirc

mirrored from https://git.joakode.fr/joack/discirc
http://docs.joakode.fr/discirc/
GNU General Public License v3.0
9 stars 8 forks source link

Won't connect to IRC server #20

Open crabctrl opened 5 years ago

crabctrl commented 5 years ago

Hello, I'm trying to bridge a channel on Freenode, however although the Discord bot starts up, the bridge doesn't connect to Freenode. My config worked a couple months ago, but for whatever reason it's stopped working now.

Help would be greatly appreciated.

j0ack commented 5 years ago

Hello,

Have you tried a /whois on freenode to see if your bot username is already taken ?

crabctrl commented 5 years ago

Yes; it is also using a registered account with a password

j0ack commented 5 years ago

Can you post a pip freeze to see which version of the libs you are using please ?

crabctrl commented 5 years ago

Here it is:

acme==0.31.0
aiohttp==3.5.4
argh==0.26.2
asn1crypto==0.24.0
async-timeout==3.0.1
asyncblink==0.3.2
attrs==19.1.0
Automat==0.6.0
bcrypt==3.1.6
blinker==1.4
bottom==2.1.3
certbot==0.31.0
certbot-nginx==0.31.0
certifi==2019.3.9
cffi==1.11.5
chardet==3.0.4
Click==7.0
cloud-init==18.5
colorama==0.3.7
command-not-found==0.3
ConfigArgParse==0.11.0
configobj==5.0.6
constantly==15.1.0
cryptography==2.1.4
discirc==0.6
discord.py==1.0.1
distro-info===0.18ubuntu0.18.04.1
fail2ban==0.10.2
future==0.15.2
httplib2==0.9.2
hyperlink==17.3.1
idna==2.8
idna-ssl==1.1.0
incremental==16.10.1
inflect==2.1.0
irc==17.0
jaraco.classes==2.0
jaraco.collections==2.0
jaraco.functools==2.0
jaraco.itertools==4.2
jaraco.logging==2.0
jaraco.stream==2.0
jaraco.text==2.0
Jinja2==2.10
josepy==1.1.0
jsonpatch==1.16
jsonpointer==1.10
jsonschema==2.6.0
keyring==10.6.0
keyrings.alt==3.0
language-selector==0.1
MarkupSafe==1.0
mock==2.0.0
more-itertools==5.0.0
multidict==4.5.2
ndg-httpsclient==0.4.4
netifaces==0.10.4
oauthlib==2.0.6
PAM==0.4.2
parsedatetime==2.4
pathtools==0.1.2
pbr==3.1.1
py3dns==3.1.1
pyasn1==0.4.2
pyasn1-modules==0.2.1
pycparser==2.19
pycrypto==2.6.1
pygobject==3.26.1
PyICU==1.9.8
pyinotify==0.9.6
PyJWT==1.5.3
PyNaCl==1.3.0
pyOpenSSL==17.5.0
pyparsing==2.2.0
pypolicyd-spf==2.0.2
pyRFC3339==1.0
pyserial==3.4
pyspf==2.0.12
python-apt==1.6.3+ubuntu1
python-debian==0.1.32
python-gnupg==0.4.1
pytz==2018.7
pyxdg==0.25
PyYAML==5.1
requests==2.21.0
requests-toolbelt==0.8.0
requests-unixsocket==0.1.5
SecretStorage==2.3.1
service-identity==16.0.0
six==1.12.0
ssh-import-id==5.7
systemd-python==234
tempora==1.14
Twisted==17.9.0
typing-extensions==3.7.2
ufw==0.36
unattended-upgrades==0.1
urllib3==1.24.2
watchdog==0.9.0
websockets==6.0
yarl==1.3.0
zope.component==4.3.0
zope.event==4.2.0
zope.hookable==4.0.4
zope.interface==4.3.2

Note that I'm running Python 3

j0ack commented 5 years ago

I pushed a verbose branch yesterday on the repo.

You can clone it and run discirc with --verbose to see the traces and determine why your bot does not connect to IRC

crabctrl commented 5 years ago

Using that branch and passing --verbose there are still no messages to console. The Discord bot starts, but it won't connect to IRC, and doesn't print anything whatsoever.

j0ack commented 5 years ago

That's weird did you reinstall the app ?

How do you launch it ?

crabctrl commented 5 years ago

I installed with pip3 install git+https://github.com/j0ack/discirc@verbose. Note that before I reinstall, --verbose will print an error telling me to run help to see usage, so I must be using the correct version. I'm running with discirc --verbose

j0ack commented 5 years ago

That's the correct way to install it

Could you send me your config so I could test it ?

crabctrl commented 5 years ago
{
    "discordToken": "XXXX",
    "ircServer": "chat.freenode.net",
    "ircPort": "6697",
    "ircSSl": true,
    "ircNick": "XXXX",
    "ircPass": "XXXX",
    "mappingChannels": {
        "loh-en": "#loh-en"
    },
    "channelPass": {},
    "commandChars": []
}

Note that it does not work using a random ircNick without a password either. It also doesn't work with or without SSL.