Jofthomas HF staff commited on
Commit
c198e5b
1 Parent(s): 260a396

update player description + remove console logs

Browse files

The space will now show "${HuggingFace ID} is a Human player " for others and " this is you" for yourself as a player description

Files changed (1) hide show
  1. patches/world.ts +1 -3
patches/world.ts CHANGED
@@ -107,7 +107,6 @@ export const userStatus = query({
107
  if (!oauthToken) {
108
  return null;
109
  }
110
- console.log("oauthToken", oauthToken)
111
  return oauthToken;
112
  },
113
  });
@@ -144,7 +143,7 @@ export const joinWorld = mutation({
144
  return await insertInput(ctx, world._id, 'join', {
145
  name: oauthToken,
146
  character: randomCharacter.character,
147
- description: "This is you !",
148
  tokenIdentifier: oauthToken,
149
  });
150
  },
@@ -160,7 +159,6 @@ export const leaveWorld = mutation({
160
  const { worldId, oauthToken } = args;
161
 
162
 
163
- console.log('OAuth Name:', oauthToken);
164
  if (!oauthToken) {
165
  throw new ConvexError(`Not logged in`);
166
  }
 
107
  if (!oauthToken) {
108
  return null;
109
  }
 
110
  return oauthToken;
111
  },
112
  });
 
143
  return await insertInput(ctx, world._id, 'join', {
144
  name: oauthToken,
145
  character: randomCharacter.character,
146
+ description: `${oauthToken} is a Human player !`,
147
  tokenIdentifier: oauthToken,
148
  });
149
  },
 
159
  const { worldId, oauthToken } = args;
160
 
161
 
 
162
  if (!oauthToken) {
163
  throw new ConvexError(`Not logged in`);
164
  }