parse users differently

This commit is contained in:
biglyderv 2025-03-30 02:45:09 -04:00
parent 314eb05c82
commit 500e16678d
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5

View file

@ -51,7 +51,7 @@ client.on(Events.MessageCreate, async interaction => {
sessions[id].stdout.on('data', (chunk) => {
if (chunk.toString().length > 1) {
let str = chunk.toString();
str = str.replaceAll(id, `<@${id}>`);
str = str.replaceAll(/user:([0-9]+)/g, '<@$1>');
(channels[id] || interaction.channel).send(str);
}
});