Deprecated: Use of "parent" in callables is deprecated in /var/www/html/forum/src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php on line 431
  • If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

EN Poke a User if he has no CLIENT_DESCRIPTION set

d0s3

Active Member
Hey!

Im looking for a way to poke someone that joins my Teamspeak Server and has NO CLIENT DESCRIPTION set.



Cheers! :)
 

Diesmon

Tuetchen Dominator
is awesome!
Contributor
Insider
A code example:
Code:
event.on('clientMove', function(ev){
    if(!ev.fromChannel && !ev.client.description()){
        ev.client.poke("FOOBAR");
    }
});

Maybe you need to fiddle around with the if-statement. Never used description, so dunno if you get a empty string or undefined if the description is empty. Also in this case, a description that contains only one (or multiple) whitespaces (e.g. spacebar) will get ignored and considered to be a filled description. So maybe use some regex here.
 
Top