parse users differently
This commit is contained in:
parent
314eb05c82
commit
500e16678d
1 changed files with 1 additions and 1 deletions
2
index.js
2
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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue