add network utils print

This commit is contained in:
crate 2024-09-30 20:53:41 +00:00
parent b8e09c04ff
commit 6896fca5a0

View File

@ -238,6 +238,7 @@ async def on_message(message):
try: try:
query = message.content.split() query = message.content.split()
target = query[-1] target = query[-1]
print(f"Ping Request - User: {user}, Server: {server}, Target: {target}", flush=True)
if is_private(target): if is_private(target):
rejection = await generate_chat_response("Hey Garfield, explain to me why I am dumb for trying to hack your private computer network.") rejection = await generate_chat_response("Hey Garfield, explain to me why I am dumb for trying to hack your private computer network.")
await message.channel.send(rejection) await message.channel.send(rejection)
@ -251,6 +252,7 @@ async def on_message(message):
try: try:
query = message.content.split() query = message.content.split()
target = query[-1] target = query[-1]
print(f"NSLookup Request - User: {user}, Server: {server}, Target: {target}", flush=True)
if is_private(target): if is_private(target):
rejection = await generate_chat_response("Hey Garfield, explain to me why I am dumb for trying to hack your private computer network.") rejection = await generate_chat_response("Hey Garfield, explain to me why I am dumb for trying to hack your private computer network.")
await message.channel.send(rejection) await message.channel.send(rejection)