Nickname change with Javascript

gkardinal

New Member
Oct 17, 2018
2
1
11
He i want to make an Nickname-Changer in HTML/Javascript but i cant find anything about this and didn't know the Syntax to Change the nickname
if someone can help me im very grateful,
in love your kardinal!
 

exp111

Member
Oct 10, 2015
2
2
38
I guess you want a clientside changer (as I don't think there is a way to change names on the server).
There are bridges between ts3 and javascript, but I wouldn't recommend this.
Try learning python and use pyTson or learn lua and use the lua plugin (python is more useful though).
 
E

ewenjo

Are you using some kind of backend server that connects with the TeamSpeak server? eg. Nodejs
 

XARON

get over here!
Restricted
Nov 24, 2016
162
161
118
Install and enable clientquery plugin, set auth key and nickname.

HTML:
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script type="text/javascript">
        var authKey = 'S0XZ-6P77-69A4-KH2H-27CX-A6ID',
            nickname = 'XARONdaTEST';
        function changeNickname() {
            var xhr = new XMLHttpRequest();
            xhr.open("POST", "http://127.0.0.1:25639", true);
            xhr.onreadystatuschange = function() {
                return true;
            }
            xhr.send("auth apikey="+authKey+"\nclientupdate client_nickname="+nickname+"\n");
        }
    </script>
    <button type="button" onclick="changeNickname()">Change Nickname</button>
</body>
</html>
 
Last edited:
Top