Nickname change with Javascript

gkardinal

New Member
Joined
Oct 17, 2018
Messages
2
Reaction score
1
Points
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
Joined
Oct 10, 2015
Messages
2
Reaction score
2
Points
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
Joined
Nov 24, 2016
Messages
162
Reaction score
161
Points
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:

gkardinal

New Member
Joined
Oct 17, 2018
Messages
2
Reaction score
1
Points
11
Big thanks at XARON you helped me alot
 
Top