Passing points to onMessage, fixes NaN points.
This commit is contained in:
parent
462e1ee1de
commit
1f98681693
|
@ -182,7 +182,10 @@ function onMessage(message, bot, games) {
|
||||||
...game,
|
...game,
|
||||||
bot,
|
bot,
|
||||||
message,
|
message,
|
||||||
user,
|
user: user && {
|
||||||
|
...user,
|
||||||
|
points: points[game.key]?.[`${user.id}:${user.username}`] || 0,
|
||||||
|
},
|
||||||
room,
|
room,
|
||||||
logger,
|
logger,
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in New Issue