Rilvanoman
#stayinghome
Hey I'm trying to make a script that grants users that join the teamspeak channel talk power. But I'm stuck on the part where the bot gives the user the permission
Heres the my code:
Heres the my code:
Code:
event.on("clientMove", function(data) {
if(data.toChannel == channelID) {
if(!findBanList(data.toChannel.description(), "BANNED PLAYERS:").includes(data.client.description())) {
/* Give the player talk power*/
}
}
});
function findBanList(description, banlistTitle) {
var banlist = description.indexOf(banlistTitle);
return description.substring(banlist);
}
Last edited: