Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<?php
class Qry
{
var $command;
var $antwort;
function Querry($msg)
{
if($msg[0] == "!QUIT")
$this->quit();
if($msg[0] == "!JOIN")
$this->join($msg);
if($msg[0] == "!NICK")
$this->nick($msg);
if($msg[0] == "!PART")
$this->part($msg);
}
function quit ()
{
$this->$antwort = "So ich geh dann mal";
$this->$command = "QUIT";
}
function join($msg)
{
if(count($msg)<2)
$this->$antwort = "!join <#channel>";
else
$this->$command = "JOIN ".$msg[1];
}
function part($msg)
{
if(count($msg)<2)
$this->$antwort = "!part <#channel>";
else
$this->$command = "PART ".$msg[1];
}
function nick($msg)
{
if (count($msg) < 2)
$this->$antwort = "!nick new_nick";
else
$this->$command = "NICK ". $msg[1];
}
function getCommand()
{
return $this->$command;
}
function getAntwort()
{
return $this->$antwort;
}
}
?>
$this->$antwort = "So ich geh dann mal";
$this->$command = "QUIT";