ctx.message -> discord.utils.utcnow()
This commit is contained in:
parent
d46ef03ba1
commit
0d470fb857
1 changed files with 1 additions and 1 deletions
|
@ -420,7 +420,7 @@ class NetworkCog(commands.Cog):
|
||||||
if enable_os_detection and not is_superuser:
|
if enable_os_detection and not is_superuser:
|
||||||
return await ctx.respond("OS detection is not available on this system.")
|
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)
|
tmp_dir = Path(tmp)
|
||||||
args = [
|
args = [
|
||||||
"nmap",
|
"nmap",
|
||||||
|
|
Loading…
Reference in a new issue