lykoss / lykos

Werewolf, the popular detective/social party game (a theme of Mafia)
https://werewolf.chat
Other
127 stars 63 forks source link

more cooler IRC tokenisation #476

Closed jesopo closed 2 years ago

jesopo commented 2 years ago

😎

skizzerz commented 2 years ago

Looks like this isn't stripping newlines from the end of received lines, which we need to do. Please verify that you are exactly duplicating the logic of the original code and not introducing any differences. Note that some of the log lines start with ) which indicates that there's a spurious \r in there somewhere. This is also breaking the bot because it doesn't recognize the SASL reply and therefore doesn't do anything about it, meaning it just sits idling until the remote closes the connection.

[2021-08-26 05:13:52+0000] Loading Werewolf IRC bot
[2021-08-26 05:13:52+0000] Connecting to irc.libera.chat:+6697
[2021-08-26 05:13:52+0000] Connected with cipher TLS_AES_256_GCM_SHA384
[2021-08-26 05:13:52+0000] ---> send 'CAP LS 302'
[2021-08-26 05:13:52+0000] ---> send 'NICK rolebot'
[2021-08-26 05:13:52+0000] ---> send 'USER awoo 0 * :eating geckos for breakfast'
)2021-08-26 05:13:53+0000] <--- receive cadmium.libera.chat notice (*, *** Checking Ident
)2021-08-26 05:13:53+0000] <--- receive cadmium.libera.chat notice (*, *** Looking up your hostname...
)2021-08-26 05:13:53+0000] <--- receive cadmium.libera.chat notice (*, *** Found your hostname: redacted
)2021-08-26 05:13:58+0000] <--- receive cadmium.libera.chat notice (*, *** No Ident response
[2021-08-26 05:13:58+0000] <--- receive cadmium.libera.chat cap (*, LS, account-notify away-notify chghost extended-join multi-prefix sasl=PLAIN,ECDSA)NIST256P-CHALLENGE,EXTERNAL tls account-tag cap-notify echo-message solanum.chat/identify-msg solanum.chat/realhost
[2021-08-26 05:13:58+0000] ---> send 'CAP REQ :extended-join chghost multi-prefix sasl account-notify'
)2021-08-26 05:13:58+0000] <--- receive cadmium.libera.chat cap (rolebot, ACK, extended-join chghost multi-prefix sasl account-notify
[2021-08-26 05:13:58+0000] ---> send 'AUTHENTICATE PLAIN'
)2021-08-26 05:13:58+0000] <--- receive None authenticate (+
)2021-08-26 05:14:46+0000] <--- receive None error (Closing Link: redacted (Connection timed out)
[2021-08-26 05:14:46+0000] closing socket
[2021-08-26 05:14:46+0000] Calling sys.exit()...