Passing points to onMessage, fixes NaN points.

This commit is contained in:
ThePendulum 2022-01-08 00:26:01 +01:00
parent 462e1ee1de
commit 1f98681693
1 changed files with 4 additions and 1 deletions

View File

@ -182,7 +182,10 @@ function onMessage(message, bot, games) {
...game,
bot,
message,
user,
user: user && {
...user,
points: points[game.key]?.[`${user.id}:${user.username}`] || 0,
},
room,
logger,
}));