Merge branch 'main' of https://github.com/Xargana/blahaj-srv
This commit is contained in:
commit
6ac0989448
|
@ -821,7 +821,7 @@ case "anime":
|
|||
const maxHops = interaction.options.getInteger("hops") || 16;
|
||||
|
||||
const { spawn } = require('child_process');
|
||||
const tracepath = spawn('traceroute', ['-q 1', `-m ${maxHops}`, target, " | awk \'{print $1, $2, $3}\'"]);
|
||||
const tracepath = spawn('traceroute', ['-q', '1', '-d', '-m', `${maxHops}`, target, " | awk '{print $1, $2, $3}'"]);
|
||||
|
||||
let output = '';
|
||||
|
||||
|
@ -843,6 +843,10 @@ case "anime":
|
|||
await interaction.editReply({ embeds: [traceEmbed] });
|
||||
});
|
||||
|
||||
tracepath.stderr.on('data', (data) => {
|
||||
console.log(`stderr: ${data}`);
|
||||
});
|
||||
|
||||
tracepath.on('close', async () => {
|
||||
const finalEmbed = {
|
||||
title: `Path to ${target} - Complete`,
|
||||
|
|
Loading…
Reference in a new issue