From b88e8c480bb8c2cbdc41281c50e5f52ace62c40f Mon Sep 17 00:00:00 2001 From: Xargana Date: Sun, 30 Mar 2025 10:27:13 +0300 Subject: [PATCH] no more live updates :sad: --- discord/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/discord/index.js b/discord/index.js index e61eb5a..0a4c8dc 100644 --- a/discord/index.js +++ b/discord/index.js @@ -821,7 +821,10 @@ case "anime": const maxHops = interaction.options.getInteger("hops") || 16; 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 = ''; @@ -865,7 +868,7 @@ case "anime": ephemeral: true }); } - break; + break; case "whois": try { await interaction.deferReply();