This commit is contained in:
tursom 2024-10-11 16:55:47 +08:00
parent 7f8f57603a
commit 66cccc6603

View File

@ -34,11 +34,12 @@ async function sendMsg(req, res) {
res.setHeader('Content-Type', 'text/plain');
res.end('Success\n');
getUserInfo(client.steamUser.steamID).then((sender) => {
fs.appendFile("./logs/chat.jsonl", JSON.stringify({
date: dateToString(response.server_timestamp),
echo: true,
id: requests.id,
name: getUserInfo(client.steamUser.steamID).player_name,
name: sender.player_name,
message: response.modified_message,
ordinal: response.ordinal,
}) + "\n", (e) => {
@ -47,6 +48,7 @@ async function sendMsg(req, res) {
}
});
})
})
}
async function sendImg(req, res) {