diff --git a/seautils/seautils.py b/seautils/seautils.py index 15362a7..6eaafa7 100644 --- a/seautils/seautils.py +++ b/seautils/seautils.py @@ -8,7 +8,6 @@ import asyncio import inspect import operator -from datetime import datetime from functools import partial, partialmethod from typing import Any @@ -106,13 +105,12 @@ class SeaUtils(commands.Cog): data = yaml.safe_load(stdout.decode()) message_data = data[0]['message'] response_data = message_data['response_message_data'] - timestamp = datetime.fromisoformat(message_data['response_time'].replace('Z', '+00:00')) if ctx.embed_requested(): embed = Embed( title="DNS Query Result", description=f"Query for {response_data['QUESTION_SECTION'][0]}", color=await ctx.embed_color(), - timestamp=timestamp + timestamp=message_data['response_time'] ) embed.add_field(name="Response Address", value=message_data['response_address'], inline=True) embed.add_field(name="Response Port", value=message_data['response_port'], inline=True)