Skip to content

Commit

Permalink
stream id when still live
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed Mar 6, 2024
1 parent a8d7619 commit 5980ad7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/twitch.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ async function getStream() {
await dbManager.updateChannel(config.twitch.channels, { live: false, streamId: null })
result = { type: 'finished', messageId: channel.lastMessageId, streamId: channel.streamId}
} else if (liveData && channel.live) {
await dbManager.updateChannel(config.twitch.channels, { streamId: liveData.id })
result = { ...liveData, type: 'stillLive', messageId: channel.lastMessageId, lastTitle: channel.title}
}

Expand Down

0 comments on commit 5980ad7

Please sign in to comment.