Closed PythooonUser closed 7 years ago
This adds the __str__ magic method to the TwitchChatEvent class to make debugging easier by simply calling:
__str__
for event in observer.get_events(): print(event)
Which will print type:channel:nickname:mode:message:tags.
type:channel:nickname:mode:message:tags
Note: This might fail in the Windows console with a UnicodeEncodeError if message contains non-printable characters.
UnicodeEncodeError
message
Summary
This adds the
__str__
magic method to the TwitchChatEvent class to make debugging easier by simply calling:Which will print
type:channel:nickname:mode:message:tags
.Note: This might fail in the Windows console with a
UnicodeEncodeError
ifmessage
contains non-printable characters.