Asynchronous Python framework to build TeamSpeak 3 Server Query bots
Project description
TSBot
Asynchronous Python framework to build TeamSpeak 3 Server Query bots
✅ Features
- Modern Python
async
andawait
syntax - Secure connection through SSH
- Ease of use query building
- 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
Project details
Release history Release notifications | RSS feed
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.5.0.tar.gz
(30.6 kB
view details)
Built Distribution
tsbot-1.5.0-py3-none-any.whl
(34.0 kB
view details)
File details
Details for the file tsbot-1.5.0.tar.gz
.
File metadata
- Download URL: tsbot-1.5.0.tar.gz
- Upload date:
- Size: 30.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd47415a0957f4e72b05ab1727436920220f98232b87f4d580db6381e237e6a7 |
|
MD5 | c7cb9301e2e87314b6b00cdfa65376b8 |
|
BLAKE2b-256 | 2502d4ed4ccbdefb905d33ca99e9786b0944ccfa0bd13062c0208c828599a77e |
Provenance
The following attestation bundles were made for tsbot-1.5.0.tar.gz
:
Publisher:
publish.yaml
on jykob/TSBot
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
tsbot-1.5.0.tar.gz
- Subject digest:
cd47415a0957f4e72b05ab1727436920220f98232b87f4d580db6381e237e6a7
- Sigstore transparency entry: 150320034
- Sigstore integration time:
- Predicate type:
File details
Details for the file tsbot-1.5.0-py3-none-any.whl
.
File metadata
- Download URL: tsbot-1.5.0-py3-none-any.whl
- Upload date:
- Size: 34.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be1c94ae57883dcb7b2b3299027c234ef544d465de673a4c27282819a41d085c |
|
MD5 | 53b313d978e2babba0778bd8a81385ef |
|
BLAKE2b-256 | cbb1eeecffb34a0ab31663d8bc2a589f24ead39e7c35cee24514be8f5620dea7 |
Provenance
The following attestation bundles were made for tsbot-1.5.0-py3-none-any.whl
:
Publisher:
publish.yaml
on jykob/TSBot
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
tsbot-1.5.0-py3-none-any.whl
- Subject digest:
be1c94ae57883dcb7b2b3299027c234ef544d465de673a4c27282819a41d085c
- Sigstore transparency entry: 150320038
- Sigstore integration time:
- Predicate type: