mentions
This commit is contained in:
parent
ae2309cb62
commit
4701f500c8
1 changed files with 3 additions and 1 deletions
4
index.js
4
index.js
|
@ -45,7 +45,9 @@ client.on(Events.MessageCreate, async interaction => {
|
|||
|
||||
sessions[id].stdout.on('data', (chunk) => {
|
||||
if (chunk.toString().length > 1) {
|
||||
interaction.channel.send(chunk.toString());
|
||||
let str = chunk.toString();
|
||||
str = str.replaceAll(id,`<@${id}>`)
|
||||
interaction.channel.send(str.toString());
|
||||
}
|
||||
});
|
||||
sessions[id].on('close', () => {
|
||||
|
|
Loading…
Reference in a new issue