Commit cbf64840 authored by Luke081515's avatar Luke081515

Raw concept

parent fbfad7e7
Pipeline #1887 failed with stages
in 52 seconds
......@@ -10,8 +10,41 @@ require './Cygnus/BotCore.php';
class WikiCommander extends Core {
public function __construct($Account, $Job, $pUseHTTPS = true) {
$this->initcurl($Account, $Job, $pUseHTTPS);
while (true) {
$this->echoMsg("This is currently an alpha version. Several features may be unavailable.", "warning");
$this->chooseType();
}
}
public function chooseType() {
$answer = strtoupper($this->ask("Enter the type [P/U/?]", "required");
switch($answer) {
case 'P':
$this->typePage();
break;
case 'U':
$this->typeUser();
break;
case '?':
default:
$this->echoMsg("Currently available:\n* P - Page\n* U - User", "notice");
}
}
private function typePage() {
$answer = strtoupper($this->ask("Enter the type [?]", "required");
switch($answer) {
case '?':
default:
$this->echoMsg("Currently not implemented yet.", "error");
}
}
private function typeUser() {
$answer = strtoupper($this->ask("Enter the type [?]", "required");
switch($answer) {
case '?':
default:
$this->echoMsg("Currently not implemented yet.", "error");
}
}
}
$Bot = new ExampleProgramm ('WikiCommander', 'WikiCommander');
?>
\ No newline at end of file
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