Commit 49bc8740 authored by Luke081515's avatar Luke081515 Committed by Freddy
Browse files

add JWPeinladung

Original commit by freddy2001
parent 2093f81c
#!/usr/bin/php
<?php
include './Core/BotCore.php';
/** JWPeinladung.php
* Einladungen an die JWP verteilen
* @Author Freddy2001 <freddy2001@wikipedia.de>
* @Version 0.1
* @Status Alpha
*/
class JWPeinladung extends Core {
public function JWPeinladung($Account, $Job) {
$this->initcurl($Account, $Job;
$target = array(
"Danielofking",
"Doktorpixel14",
"Rogi.Official",
"TVB55",
"Spirou et Fantasio",
"Kiste11",
"KPFC",
"Jonathan Data",
"Cedronella",
"Sagaduos",
"Ethno & 4D",
"Salsim5774",
"Eichck",
"Mupa280868",
"Aristoxenos",
"Florian Schneider",
"Armata Strigoi",
"Chrisi LE EO",
"Elmedinfeta",
"Rheinlausitzer",
"Lirim.Z",
"XaviYuahanda",
"MarcRKS",
"XXThePhischXx",
"WuffiWuff2",
"Mateo K 01",
"New York-air",
"JayJoeRayLuigi",
"Pratyya Ghosh",
"Honischboy",
"Florian Ferdinand Scheel",
"Chr...",
"Jonaes02",
"Erik-Holm Langhof",
"Hr.Brant",
"Kritischergeist",
"Nin-TD",
"LEP Hamburg",
"Girwidz",
);
$text = "{{subst:User:Freddy2001/Einladung JWPCon 2018}}";
$comment = "Neuer Abschnitt /* Treffen der Jungwikipedianer – Herzliche Einladung! */";
for($i = 0; count($target) > $i; $i++) {
$page = "User talk:" . $target[$i];
$content = $this->readPage($page);
$content = $content . "\n" . $text;
echo $target[$i] . "\n";
$this->editPage($page, $content, $comment);
sleep(10);
}
}
}
new JWPeinladung ('Freddy2001@dewiki', 'JWPeinladung');
?>
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