knrd1 / chatgpt

ChatGPT IRC bot
https://github.com/knrd1/chatgpt
MIT License
33 stars 7 forks source link

451 Register first on server that does not need registering #22

Open ronilaukkarinen opened 1 year ago

ronilaukkarinen commented 1 year ago
rolle@botit:~/chatgpt$ python3 chatgpt.py
Connecting to: irc.quakenet.org
Connected to: irc.quakenet.org
NOTICE AUTH :*** Looking up your hostname

NOTICE AUTH :*** Checking Ident
PING :2826250253
:hostsailor.ro.quakenet.org 451 obfuscatednick obfuscatednick :Register first.
NOTICE AUTH :*** Got ident response

:hostsailor.ro.quakenet.org 451 obfuscatednick obfuscatednick :Register first.
NOTICE AUTH :*** Found your hostname

:hostsailor.ro.quakenet.org 451 obfuscatednick obfuscatednick :Register first.

:hostsailor.ro.quakenet.org 451 obfuscatednick obfuscatednick :Register first.

:hostsailor.ro.quakenet.org 451 obfuscatednick obfuscatednick :Register first.

:hostsailor.ro.quakenet.org 451 obfuscatednick obfuscatednick :Register first.

:hostsailor.ro.quakenet.org 451 obfuscatednick obfuscatednick :Register first.

Any ideas?

fhazal commented 1 year ago

i have the same problem, i've already register the nick for the bot, how can i make the bot identify to irc server ?? the command the server use is /ns identify passwd to identify the nickname

:irc.bajubesi.com.my 451 ChatGPT :You have not registered

:irc.bajubesi.com.my 451 ChatGPT :You have not registered

:irc.bajubesi.com.my 451 ChatGPT :You have not registered

knrd1 commented 1 year ago

Thanks for that, I will look into this.

klppl commented 11 months ago

This fixed it for me

if data:
            print(data)
            # Handle PING messages
            if "PING" in data:
                ping_message = re.search(r'PING :(.+)', data)
                if ping_message:
                    pong_response = "PONG :" + ping_message.group(1) + "\n"

                    irc.send(pong_response.encode("UTF-8"))
ph818 commented 8 months ago

One tip I saw somewhere else is you can configure znc to identify with services (via SASL or however, znc supports a lot of things), and then connect the bot to znc.

awatin commented 7 months ago

I got this error as well in irc.undernet.org (in all servers and ports using 6667 and 7000).

I tried the fix recommended by klppl, but it doesn't work.

Thanks!

awatin commented 7 months ago

I got this error as well in irc.undernet.org (in all servers and ports using 6667 and 7000).

I tried the fix recommended by klppl, but it doesn't work.

Thanks!

btw, this works now, just have to "import re"

Thanks!

cyberguyIT commented 6 months ago

I got this error as well in irc.undernet.org (in all servers and ports using 6667 and 7000). I tried the fix recommended by klppl, but it doesn't work. Thanks!

btw, this works now, just have to "import re"

Thanks!

Can you share config file please? I have tired but for me doesn't work. Thanks

awatin commented 6 months ago

I got this error as well in irc.undernet.org (in all servers and ports using 6667 and 7000). I tried the fix recommended by klppl, but it doesn't work. Thanks!

btw, this works now, just have to "import re" Thanks!

Can you share config file please? I have tired but for me doesn't work. Thanks Screenshot_20240227_113454

Screenshot_20240227_113402

cyberguyIT commented 6 months ago

I got this error as well in irc.undernet.org (in all servers and ports using 6667 and 7000). I tried the fix recommended by klppl, but it doesn't work. Thanks!

btw, this works now, just have to "import re" Thanks!

Can you share config file please? I have tired but for me doesn't work. Thanks Screenshot_20240227_113454

Screenshot_20240227_113402

Thanks a lot but i got the same problem.

Connecting to: pipera.ro.eu.undernet.org Connected to: pipera.ro.eu.undernet.org NOTICE AUTH :*** Looking up your hostname

NOTICE AUTH : Checking Ident PING :1318381958 :Pipera.RO.EU.Undernet.Org 451 cyberguy cyberguy :Register first. NOTICE AUTH : Got ident response

Connection lost. Reconnecting... Connecting to: pipera.ro.eu.undernet.org Connected to: pipera.ro.eu.undernet.org NOTICE AUTH : Looking up your hostname NOTICE AUTH : Checking Ident PING :2729307785 :Pipera.RO.EU.Undernet.Org 451 cyberguy cyberguy :Register first. NOTICE AUTH :*** Got ident response

I have to learn more python :)

cyberguyIT commented 6 months ago

It works, i forgot to import re :)) Thanks a lot