Commit 6af64e46 authored by Luke081515's avatar Luke081515

Ausnahme für mich

parent d41984f8
Pipeline #1943 passed with stages
in 1 minute and 59 seconds
......@@ -98,6 +98,22 @@ class QueueBot extends Core {
echo ("\n" . time () . "--" . "Auftrag abgelehnt");
$this->writeToFile ("/home/luke/botecho", "[Queue] - RESULT - Request denied");
$this->NotificateOnTalkPage ($User[$TaskNumber], 5, "");
} else if ($CheckUser === 2) {
$this->writeToFile ("/home/luke/botecho", "[Queue] - WORKING - Moving page");
$answer = $this->MovePage ($StartLemma[$TaskNumber], $TargetLemma[$TaskNumber], "Bot: Verschiebung im Auftrag von [[User:" . $User[$TaskNumber] . "|" . $User[$TaskNumber] ."]]: " . $Summary[$TaskNumber]);
if (strstr ($answer, "error") === false) {
$this->writeToFile ("/home/luke/botecho", "[Queue] - RESULT - Page moved");
$this->ChangeStatus ($NumberOfTasks, $TaskNumber, $Task, $User, $StartLemma, $TargetLemma, $Summary, $Status, "e", "Bot: Auftrag bearbeitet", $Zeitstempel);
$this->NotificateOnTalkPage ($User[$TaskNumber], 1, $TargetLemma[$TaskNumber]);
$this->WriteLogError ("", "", 5, $StartLemma[$TaskNumber], $TargetLemma[$TaskNumber], $Summary[$TaskNumber]);
$this->doService( $TargetLemma[$TaskNumber] );
} else {
$this->writeToFile ("/home/luke/botecho", "[Queue] - ERROR - Page move failed");
$this->ChangeStatus ($NumberOfTasks, $TaskNumber, $Task, $User, $StartLemma, $TargetLemma, $Summary, $Status, "f", "Bot: Fehler bei der Verschiebung", $Zeitstempel);
$this->NotificateOnTalkPage ($User[$TaskNumber], 2, "");
}
$inwork = false;
$this->writeToFile ("/home/luke/botecho", "[Queue] - RESULT - Request resolved");
} else if ($ToCheck[0] != $User[$TaskNumber]) {
$this->ChangeStatus ($NumberOfTasks, $TaskNumber, $Task, $User, $StartLemma, $TargetLemma, $Summary, $Status, "p", "Bot: Auftrag abgelehnt, die Startseite im BNR entsprach nicht dem Antragstellenden Benutzer", $Zeitstempel);
$this->writeToFile ("/home/luke/botecho", "[Queue] - RESULT - Request denied");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment