This commit is contained in:
Xargana 2025-03-30 09:35:13 +03:00
parent 7183543296
commit d69f637f72

View file

@ -818,10 +818,10 @@ case "anime":
try { try {
await interaction.deferReply(); await interaction.deferReply();
const target = interaction.options.getString("target"); const target = interaction.options.getString("target");
const maxHops = interaction.options.getInteger("hops") || 30; const maxHops = interaction.options.getInteger("hops") || 16;
const { spawn } = require('child_process'); const { spawn } = require('child_process');
const tracepath = spawn('tracepath', ['-4', target]); // tracepath with numeric output const tracepath = spawn('tracepath', ['-4', `-m ${maxHops}`, target]);
let output = ''; let output = '';