a
This commit is contained in:
parent
35c3f69712
commit
70dbe9139d
|
@ -792,18 +792,12 @@ case "anime":
|
|||
|
||||
const { exec } = require('child_process');
|
||||
exec(`traceroute -m ${maxHops} ${target}`, async (error, stdout, stderr) => {
|
||||
// windows version
|
||||
// exec(`tracert -d -h ${maxHops} ${target}`, async (error, stdout, stderr) => {
|
||||
const output = stdout || stderr || 'No response';
|
||||
|
||||
const traceEmbed = {
|
||||
title: "Traceroute Results",
|
||||
description: `Target: ${target}\nMax Hops: ${maxHops}`,
|
||||
description: `Target: ${target}\nMax Hops: ${maxHops}\n\n\`\`\`\n${output}\`\`\``,
|
||||
color: 0x3498db,
|
||||
fields: [
|
||||
{
|
||||
name: "Path",
|
||||
value: `\`\`\`${stdout || stderr || 'No response'}\`\`\``
|
||||
}
|
||||
],
|
||||
timestamp: new Date(),
|
||||
footer: { text: "Network Diagnostics" }
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue