Update website/src/components/CodeExample.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
2025-10-14 00:00:15 -05:00
committed by GitHub
parent fb5509cf79
commit 5e2ff898c0
+1 -1
View File
@@ -130,7 +130,7 @@ client.chatCommands.register('ping', async (context: Context, args: any[]) => {
// Send a message to the channel
const response = await context.reply(\`Pong!: got \${args.join(', ')}\`, true);
// Calculate the time it took to send the message
const time = message.timestamp.getTime() - message.timestamp.getTime();
const time = Date.now() - message.timestamp.getTime();
// Edit the message to include the time
await context.editMessage(response, \`Pong! Latency: \${time}ms\`);
});`;