This commit is contained in:
Henry Jameson 2021-06-09 14:19:48 +03:00
commit a4e0624d0f

View file

@ -54,6 +54,11 @@ const listener = new WebHookListener(apiClient, adapter);
console.info('Starting listener...')
await listener.listen();
await post ({
spoiler_text: 'Debug',
status: '@hj twitch bot initialized'
})
// we need to track the previous status of the stream because there are other state changes than the live/offline switch
let prevStream = await apiClient.helix.streams.getStreamByUserId(userId);