diff --git a/components/stepstep.js b/components/stepstep.js index 218086e..316540a 100644 --- a/components/stepstep.js +++ b/components/stepstep.js @@ -30,7 +30,12 @@ bot.command("stepstep", async ({ reply, message }) => { rank.forEach((item, index) => { let distance = item.distance.toFixed(2); let steps = item.steps.toLocaleString(); - responseText += `${index + 1}. ${item.user.name}\n`; + let name = item.user.name + .replaceAll("<", "<") + .replaceAll(">", ">") + .replaceAll("&", "&"); + + responseText += `${index + 1}. ${name}\n`; responseText += ` ${distance} 公里 - ${steps} 步\n`; });