Im using twitchio library and setup an eventsub bot which already works for follow events.
I also want to receive raid events (being raided). Subscribing basically is successfull.
Now a raid event happened but I didnt received any notifification about that. What could be the reason why i didnt get it? (the bot was running when the event happened)
The broadcaster_id is from my own channel.
async def subscribe_channel_raid(self):
try:
await self.esclient.subscribe_channel_raid(
to_broadcaster = self.node.get_parameter(
'broadcaster_id').get_parameter_value().string_value)
self.node.get_logger().info('subscribe_channel_raid done')
except Exception as e:
self.node.get_logger().error(
'subscribe_channel_raid failed: ' + str(e))
...
@node.bot.esbot.event()
async def eventsub_notification_raid(
event: twitchio.Channel):
node.get_logger().info('Received raid event')
user = event.user()
# do something ...