ctx.message -> discord.utils.utcnow()

This commit is contained in:
Nexus 2024-07-01 18:53:19 +01:00
parent d46ef03ba1
commit 0d470fb857
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -420,7 +420,7 @@ class NetworkCog(commands.Cog):
if enable_os_detection and not is_superuser:
return await ctx.respond("OS detection is not available on this system.")
with tempfile.TemporaryDirectory(prefix=f"nmap-{ctx.user.id}-{ctx.message.created_at.timestamp():.0f}") as tmp:
with tempfile.TemporaryDirectory(prefix=f"nmap-{ctx.user.id}-{discord.utils.utcnow().timestamp():.0f}") as tmp:
tmp_dir = Path(tmp)
args = [
"nmap",