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,
|
||||
bot,
|
||||
message,
|
||||
user,
|
||||
user: user && {
|
||||
...user,
|
||||
points: points[game.key]?.[`${user.id}:${user.username}`] || 0,
|
||||
},
|
||||
room,
|
||||
logger,
|
||||
}));
|
||||
|
|
Loading…
Reference in New Issue