Closed aticie closed 3 years ago
Don't handle ACK messages
Why did you close this with wontfix. This was literally the recommended way of doing it in 1.2.3.
async def event_message(self, message):
print(message.content)
await self.handle_commands(message)
from https://github.com/TwitchIO/TwitchIO/blob/1.2.3/docs/twitchio.rst
I don't understand why we need to add another if/else for self-messages now, it could be fixed in the library.
ACK messages cannot have an author because they are dispatched by the library. 2.0 has breaking changes from 1.x, this is one of those. Furthermore, you should not be handling messages from the bot anyways, so this is a wontfix.
When making a child class of
commands.Bot
like this:For the message that the bot sent to the channel, the
Context()
variable will be None. Thus producing this error: