diff --git a/index.js b/index.js index 8985373..9573237 100644 --- a/index.js +++ b/index.js @@ -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); } });