src/sb/XMPP/Client.php
public function sleep($secs)
    {
        $str = 'Going to sleep for '.$secs.'secs';
        $this->log('NOTICE: '.$str);
        $this->setStatus($str);
        sleep($secs);
        $this->setStatus($this->status ? $this->status : 'awake');
    }
public function sleep($secs)
    {
        $str = 'Going to sleep for '.$secs.'secs';
        $this->log('NOTICE: '.$str);
        $this->setStatus($str);
        sleep($secs);
        $this->setStatus($this->status ? $this->status : 'awake');
    }
public function sleep ( $ secs ) { $ str = 'Going to sleep for ' . $ secs . 'secs' ; $ this -> log ( 'NOTICE: ' . $ str ) ; $ this -> setStatus ( $ str ) ; sleep ( $ secs ) ; $ this -> setStatus ( $ this -> status ? $ this -> status : 'awake' ) ; }
Puts the bot to sleep for a while
@param integer $secs
Puts the bot to sleep for a while