twitch-graphql
Version:
A graphql wrapper for the Twitch API.
11 lines (9 loc) • 312 B
text/typescript
import { PubSubClient } from 'twitch-pubsub-client'
export default async function (channelID: string, pubSubClient: PubSubClient) {
return await pubSubClient.onRedemption(channelID, (message) => {
const reward = message.rewardName
switch (reward) {
case 'Show your name on screen':
}
})
}