ZeroKnight / ZeroBot

My personal IRC/Multi-protocol Bot created (and re-created) for education and amusement.
MIT License
1 stars 0 forks source link

Fix `util.gen_repr` abbreviating other ZeroBot object `__repr__`s #1

Closed ZeroKnight closed 4 years ago

ZeroKnight commented 4 years ago

The new __repr__ generator is a bit naive in that it is shortening the repr strings of other ZeroBot objects as if they were normal strings.

Example:

Sending event 'irc_notice', ctx=<ZeroBot.protocol.irc.protocol.IRCContext object at 0x7ff4a0b4ac10>, args=(<IRCMessage source=<IRCServer ho...freenode.net'> destination='*' content='*** Looking ...r hostname...' tags={'time': '2020-06-19T05:52:39.779Z'}>,), kwargs={}