This commit is contained in:
root 2025-03-30 07:35:21 +01:00
commit fa2443e7b9

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 = '';