Skip to content

Commit

Permalink
fix bot
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed Oct 16, 2024
1 parent 4050e83 commit d493a7c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/eventSub.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ class EventSub {
async subscribeEvent (channelId) {
this.middleware.onChannelFollow(channelId, config.twitch.userId, event => {
console.log(`${event.userDisplayName} just followed ${event.broadcasterDisplayName}!`);
bot.say(`#${config.twitch.channels}`, `Gracias por seguirnos ${event.userDisplayName}!`)
this.bot.say(`#${config.twitch.channels}`, `Gracias por seguirnos ${event.userDisplayName}!`)
});

this.middleware.onChannelRedemptionAddForReward(channelId, 21929, event => {
console.log(`${event.userDisplayName} just redeemed ${event.rewardTitle}!`);
this.bot.say(`#${config.twitch.channels}`, `Gracias por redimir ${event.rewardTitle} ${event.userDisplayName}!`)
});
}
}
Expand Down

0 comments on commit d493a7c

Please sign in to comment.