diff --git a/src/cogs/net.py b/src/cogs/net.py index 95c1c22..91bab30 100644 --- a/src/cogs/net.py +++ b/src/cogs/net.py @@ -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",