From 2c6bbf1b64266272e981933eb1c26ec06bc3bc96 Mon Sep 17 00:00:00 2001 From: crate Date: Mon, 30 Sep 2024 20:47:21 +0000 Subject: [PATCH] fix rejection --- garfbot.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/garfbot.py b/garfbot.py index 627852c..72ec7fd 100644 --- a/garfbot.py +++ b/garfbot.py @@ -240,29 +240,14 @@ async def on_message(message): target = query[-1] if is_private(target): rejection = await generate_chat_response("Hey Garfield, I am hacking your computer network.") + await message.channel.send(rejection) else: result = subprocess.run(['ping', '-c', '4', target], capture_output=True, text=True) await message.channel.send(f"`Ping result for {target}: {result.stdout}`") except Exception as e: await message.channel.send(f"`GarfBot Error: {str(e)}`") - # if message.content.lower().startswith("garfdns "): - # try: - # query = message.content.split() - # target = query[-1] - # result = subprocess.run(['nslookup', target], capture_output=True, text=True) - # await message.channel.send(f"`Ping result for {target}: {result.stdout}`") - # except Exception as e: - # await message.channel.send(f"`GarfBot Error: {str(e)}`") - # if message.content.lower().startswith("garfhack "): - # try: - # query = message.content.split() - # target = query[-1] - # result = subprocess.run(['ping', '-c', '1', target], capture_output=True, text=True) - # await message.channel.send(f"`Ping result for {target}: {result.stdout}`") - # except Exception as e: - # await message.channel.send(f"`GarfBot Error: {str(e)}`") # Kroger Shopping if message.content.lower().startswith("garfshop "):