TSBot 
Asynchronous Python framework to build TeamSpeak 3 Server Query bots
✅ Features
- Modern Python
asyncandawaitsyntax - Fully typed interface
- Event, command and background task systems
- Secure connection through SSH, or raw connection for local servers
- Ease of use query building
- Automatic reconnection if connection is lost
- Built-in and configurable ratelimiter if no access to
query_ip_allowlist.txt
✏️ Examples
from __future__ import annotations
import asyncio
from tsbot import TSBot, TSCtx, query
bot = TSBot(
username="USERNAME",
password="PASSWORD",
address="ADDRESS",
)
@bot.command("hello")
async def hello_world(bot: TSBot, ctx: TSCtx):
await bot.respond(ctx, f"Hello {ctx['invokername']}!")
@bot.on("cliententerview")
async def poke_on_enter(bot: TSBot, ctx: TSCtx):
poke_query = query("clientpoke").params(clid=ctx["clid"], msg="Welcome to the server!")
await bot.send(poke_query)
asyncio.run(bot.run())
Check out 📁examples for more
📦 Installation
Python 3.10 or higher is required
Installing with pip:
# Linux/macOS
python3 -m pip install tsbot
# Windows
py -3 -m pip install tsbot
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tsbot-1.7.2.tar.gz
(23.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
tsbot-1.7.2-py3-none-any.whl
(36.8 kB
view details)
File details
Details for the file tsbot-1.7.2.tar.gz.
File metadata
- Download URL: tsbot-1.7.2.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8b3994ff59fb51db262f0c62a17022173e02efa5ad96c9b6586c8a3682588c0
|
|
| MD5 |
2864c7ee0f247c34dc260b5af61a538c
|
|
| BLAKE2b-256 |
8fc4ec8e16013dbb487a79d294cabdd6c1496e43000a9f51a6d4b7c5effb9a11
|
File details
Details for the file tsbot-1.7.2-py3-none-any.whl.
File metadata
- Download URL: tsbot-1.7.2-py3-none-any.whl
- Upload date:
- Size: 36.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d129d61e5bd8c518f368be214ad672869d1a838647318b525c3998122a67d22e
|
|
| MD5 |
8f57c47a4293e2e019a485bb0ad715da
|
|
| BLAKE2b-256 |
8f07ed399661d4aedd0081a372cd79dfbd523c985469da53a6b5a908040c1103
|