set custom nickaname of serveradmin ts3 php lib

Status
Not open for further replies.

HAZZE

New Member
Nov 8, 2020
3
2
5
hi,

i have bot in php ts3 lib, and im sending message with it, but name is serveradmin, how to change that to something else?

thanks!
 

kalle

high minded
Contributor
Oct 28, 2015
411
253
178
If you use ts3admin.class.php, there is a function to update own nickname

PHP:
/**
  * setName
  *
  * Sets your nickname in server query
  *
  * @author     Stefan Zehnpfennig
  * @param        string    $newName    new name in server query
  * @return     array success
  */
    function setName($newName) {
        return $this->getData('boolean', 'clientupdate client_nickname='.$this->escapeText($newName));
    }


If you use lib by ScP, you can edit your client by this.

PHP:
$ts3instance->selfUpdate(array("client_nickname" => 'HAZZE'));
 
Status
Not open for further replies.
Top