Hey everyone!! Ive been trying to add to my Twitch Chat Bot (Python) the ablity to see when someone redeems channel point - ATM ive just set it to send a discord message though a webhook - however Id like it to be that it updates a google sheets with the entrys – every time I run the bot it is showing errors for the channel points bit - ive tried a few diffrent ways – Can anyone help PLZ!?!
=============================
# Get broadcaster ID for EventSub
# =============================
user_info = [u async for u in bot_instance.get_users(logins=[TARGET_CHANNEL])]
USER_ID = user_info[0].id
# ---------------------------------------------------------
# CHANNEL POINT REDEEMS — EVENTSUB WEBSOCKET SETUP
# ---------------------------------------------------------
from twitchAPI.eventsub.websocket import EventSubWebsocket
# Create WebSocket client
eventsub = EventSubWebsocket(bot_instance)
# Subscribe to channel point reward redeems
await eventsub.subscribe_channel_points_custom_reward_redemption_add(
USER_ID,
on_channel_point_redeem
)
# Start WebSocket
eventsub.start()
print("✅ EventSub WebSocket connected and listening for channel point redeems!")
# ---------------------------------------------------------
