diff --git a/commands/#botted.channel.php b/commands/#botted.channel.php new file mode 100644 index 0000000..afb6e2a --- /dev/null +++ b/commands/#botted.channel.php @@ -0,0 +1,30 @@ + ipcs AS $ip => $data){ + if(time() - $data["lastcheck"] > 10){ + $result = ping_ip($ip); + $status = ($result) ? "Online" : "Offline"; + if($data["status"] != $result) $this -> call("privmsg", "#botted", "[".$ip."] Status: ".$status); + $this -> ipcs[$ip]["status"] = $result; + $this -> ipcs[$ip]["lastcheck"] = time(); + } +} + +?> diff --git a/commands/ipcs[][lastcheck] b/commands/ipcs[][lastcheck] deleted file mode 100644 index e69de29..0000000 diff --git a/commands/ipcs[][status] b/commands/ipcs[][status] deleted file mode 100644 index e69de29..0000000