Skip to content

Commit

Permalink
fix: more info
Browse files Browse the repository at this point in the history
  • Loading branch information
Geczy committed Sep 30, 2024
1 parent e40e658 commit ebbdc17
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/dota/src/twitch/commands/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,16 @@ async function fixWins(token: string, twitchChatId: string, currentMatchId?: str
'requestMatchData',
{ matchId: bet.matchId, heroId },
(err: any, response: any) => {
chatClient.whisper(twitchChatId, JSON.stringify(response))
chatClient.whisper(
twitchChatId,
`Match ${bet.matchId}: ${JSON.stringify(response)}`,
)
if (err) {
chatClient.whisper(
twitchChatId,
`Error for match ${bet.matchId}: ${JSON.stringify(err)}`,
)
}
if (err) reject(err)
else resolve(response)
},
Expand Down

0 comments on commit ebbdc17

Please sign in to comment.