tisboyo / Twitch_Bot

4 stars 2 forks source link

Minor, unhandled pubsub: clear chat #215

Closed baldengineer closed 3 years ago

baldengineer commented 3 years ago
twitchbot_bot           | Unknown pubsub received: {'type': 'chat_channel_modera
user_id': '', 'target_user_login': '', 'from_automod': False}

Got that when I used the "Clear Chat" today. I was trying to clear my chat window, I guess "Clear Chat" means everyone's chat?

Image 2021-05-28 14_11_06

tisboyo commented 3 years ago

Yep, the bot is just notifying us that it received a pubsub event and doesn't know what to do with it, so it's giving us all of the data from it in case we want to use it for something. Comes from https://github.com/tisboyo/Twitch_Bot/blob/fa3b74a2554345b2b0bc9fd1db7f0d6c0c9c1e01/bot/mods/logger.py#L82-L83

Is there something we want to do with this event?

baldengineer commented 3 years ago

At first, I thought no action. But could you add something in the IRQ logs that the event occured?

It might be useful if we ever have to track back something that happened in chat.