jykob / TSBot

Asynchronous framework to build TeamSpeak 3 Server Query bots
https://tsbot.readthedocs.io
MIT License
6 stars 3 forks source link

Add `bot.clid` and `bot.cldbid` instance variable #48

Closed jykob closed 2 weeks ago

jykob commented 2 weeks ago

Before you would have to query whoami from the server to find your own client id or client database id. Since the bot already queries it in bot.run() method, it doesn't take much to add the clid and cldbid to instance.

This can be used in queries where bots own clid or cldbid is needed. (eg. moving the bot client to another channel, adding the bot client to a server group)