Skip to content

Commit

Permalink
modified: websocket.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarran2R committed Oct 2, 2024
1 parent 04ba87b commit 8b396ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function handleWebSocketMessage(data) {
case "!np":
var timeNow = new Date().getTime();
if ((!timeThen) || (timeNow - timeThen > cooldown.value * 1000)) {
sendChatMessage(`@${data.payload.event.chatter_user_name} | ${await fetchData("map")} |${await fetchData("pp")} 100%: ${await calculatePp(100)}pp, 99%: ${await calculatePp(99)}pp, 98%: ${await calculatePp(98)}pp, 95%: ${await calculatePp(95)}pp, 90%: ${await calculatePp(90)}pp`);
sendChatMessage(`@${data.payload.event.chatter_user_name} | ${await fetchData("map")} | 100%: ${await calculatePp(100)}pp, 99%: ${await calculatePp(99)}pp, 98%: ${await calculatePp(98)}pp, 95%: ${await calculatePp(95)}pp, 90%: ${await calculatePp(90)}pp`);
timeThen = timeNow;
};
break;
Expand Down

0 comments on commit 8b396ec

Please sign in to comment.