Skip to content

Commit

Permalink
Fix using wrong key for sub events
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaserlang committed Feb 28, 2024
1 parent 1355875 commit 3ffaf92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tbot/twitch_bot/modlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async def parse_message(self, message):
if message['data']['topic'].startswith('chat_moderator_actions'):
await self.log_mod_action(message['data']['topic'], m['data'])
elif message['data']['topic'].startswith('channel-subscribe-events-v1'):
await self.log_sub(message['data']['topic'], m['data'])
await self.log_sub(m['message'])

async def log_mod_action(self, topic, data):
if 'moderation_action' not in data:
Expand Down

0 comments on commit 3ffaf92

Please sign in to comment.