Open Agent-E11 opened 2 months ago
Related to #1, and #6, because it might be a good idea to make a command that creates new services to ping, and only "bot moderators" should be able to use it
There also could be a healthcheck
option. Which pings all services, and gives a report
This should take security into account. Using
os.system(f"ping -c 1 {service}")
to ping a service would be insecure (e.g. someone could makeservice
begoogle; sudo rm -rf /
)In this case, I think
subprocess.run(["ping", "-c", "1", service])
would be more secure