no more live updates :sad:

This commit is contained in:
Xargana 2025-03-30 10:27:13 +03:00
parent 13780eca8f
commit b88e8c480b

View file

@ -821,7 +821,10 @@ case "anime":
const maxHops = interaction.options.getInteger("hops") || 16; const maxHops = interaction.options.getInteger("hops") || 16;
const { spawn } = require('child_process'); const { spawn } = require('child_process');
const tracepath = spawn('traceroute', ['-q', '1', '-d', '-m', `${maxHops}`, target, " | awk '{print $1, $2, $3}'"]); // Use shell option to properly handle the pipe
const tracepath = spawn('traceroute -q 1 -d -m ' + maxHops + ' ' + target + ' | awk \'{print $1, $2, $3}\'', {
shell: true
});
let output = ''; let output = '';
@ -865,7 +868,7 @@ case "anime":
ephemeral: true ephemeral: true
}); });
} }
break; break;
case "whois": case "whois":
try { try {
await interaction.deferReply(); await interaction.deferReply();