1
1
mirror of https://gitlab.com/ceda_ei/Zeeth-Naaw-Bot synced 2025-10-30 01:40:05 +01:00

Change messages. Not send 1 members in /all_chains

This commit is contained in:
2018-07-06 15:02:09 +05:30
parent ee5b5a6ee9
commit b808d36a7b
2 changed files with 5 additions and 2 deletions

View File

@@ -106,7 +106,7 @@ function chain_to_string($chain) {
for ($i = count($chain) - 1; $i >= 0 ; $i--) {
$string .= $chain[$i]['username'];
if ($i != 0) {
$string .= "\n";
$string .= "";
}
}
return $string;
@@ -144,6 +144,9 @@ if ($argv[1] == "all") {
$end_points = $conn->query($query);
while ($end_point = $end_points->fetch_assoc()){
$chain = get_chain_from_user($end_point);
if (count($chain) == 1){
continue;
}
send_text(chain_to_string($chain));
}
exit();