Това подаване се съдържа в:
biglyderv 2025-03-30 02:45:09 -04:00
родител 314eb05c82
подаване 500e16678d
Signed by: biglyderv
ID на GPG ключ: 0E2EB0B4CD7397B5

Преглед на файла

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