I have an IRC bot (made specifically for twitch.tv) written in Python. It seems to work perfectly fine on my PC but when trying to run it on PythonAnywhere, it gives me this error:
Traceback (most recent call last):
File "/home/Log/main.py", line 66, in <module>
con.connect((HOST, PORT))
ConnectionRefusedError: [Errno 111] Connection refused
I don't understand why it would not work here but works fine on my computer. Please could somebody help me with this issue?
Thank you in advance.
EDIT: It also says there is a syntax error but when I use the code in IDLE, it says that I do not have any syntax errors.
EDIT: I've just discovered the whitelist. The server I'm connecting to is irc.twitch.tv:6667. I can't find this server on the list and I'm assuming that is the reason why this is not working. If I upgrade to the Hacker plan (as I am currently a free user), will this work? Considering that the code runs perfectly fine in Python's IDLE (3.4.0).
Thanks.