This commit is contained in:
crate 2024-09-30 19:56:10 +00:00
parent a135a81c65
commit 41c27b5094

View File

@ -226,7 +226,7 @@ async def on_message(message):
query = message.content.split() query = message.content.split()
target = query[-1] target = query[-1]
result = subprocess.run(['ping', '-c', '1', target], capture_output=True, text=True) result = subprocess.run(['ping', '-c', '1', target], capture_output=True, text=True)
await message.channel.send(f`"Ping result for {target}: {result.stdout}`") await message.channel.send(f"`Ping result for {target}: {result.stdout}`")
except Exception as e: except Exception as e:
await message.channel.send(f"`GarfBot Error: {str(e)}`") await message.channel.send(f"`GarfBot Error: {str(e)}`")