2021-06-29 18:25:41 [ghi] IRC - Connecting to irc.libera.chat:6667 with nick nickname and channels: #channel
2021-06-29 18:25:42 [ghi] IRC - There was a problem sending messages to IRC
2021-06-29 18:25:42 [ghi] IRC - module 'base64' has no attribute 'encodestring'
2021-06-29 18:25:42 [ghi] Something went wrong while trying to notify IRC.
base64.encodestring() and base64.decodestring(), aliases deprecated since Python 3.1, have been removed: use
base64.encodebytes() and base64.decodebytes() instead. (Contributed by Victor Stinner in bpo-39351.)
changing encodestring to encodebytes resoles error and bot works again:
offending line: https://github.com/gkrizek/ghi/blob/master/ghi/irc.py#L87
can see that this fails in python 3.9.x
https://docs.python.org/3.9/whatsnew/3.9.html
changing encodestring to encodebytes resoles error and bot works again: