Skip to content

Commit

Permalink
feat: add console log for new user registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Markkop committed Feb 17, 2022
1 parent 40b4056 commit ee4e536
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/interactions/playerMoves/registerUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ export async function registerUser(data: PlayerMovesEvent, context: ServerClient
const user = await getUser(playerId)
if (user) return

const playerName = context.player!.name!

console.log(`New user registered: ${playerName} (${playerId})!`)
await createOrUpdateUser({
gatherPlayerId: playerId,
gatherName: context.player!.name!
gatherName: playerName
})
} catch (error) {
console.log(error)
Expand Down

0 comments on commit ee4e536

Please sign in to comment.