TeamSpeak GroupAssigner
Overview
TSGroupAssigner is a module which allows to automatically assign server groups to voice clients, if they connect within a specific date range.
example
This small example script could be called before christmas to assign the group 24 to every voice client connecting
to the server id 1.
The process will terminate gracefully, when the configured date range is exceeded.
import datetime as dt
import logging
from TSGroupAssigner import GroupAssigner, DateException
logger = logging.getLogger()
logger.setLevel(logging.INFO)
params = {
'host': 'localhost',
'port': 10011,
'user': 'serveradmin',
'password': '5up3r_53cr37',
'sid': 1,
'gid': 24
}
target = dt.date(year=2020, month=2, day=14)
duration = dt.timedelta(days=2)
try:
GroupAssigner(date=target, nick="James", delta=duration, **params).start()
except DateException as err:
logger.error(err)
Release files for TSGroupAssigner 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| TSGroupAssigner-0.2.tar.gz | 17.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| TSGroupAssigner-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.9 kB
Release files / TSGroupAssigner-0.2.tar.gz
| Download URL | TSGroupAssigner-0.2.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34159226125837e09b5b5e661c7d8bdc3ece400066e089e9b27f559a38c9920c
|
|
BLAKE2b-256 checksum How to use checksums |
aa334dc39fb962ed29278956b46b041ffe4a21bef6c4d0dd1a9f7bd081e26af4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1
|
Release files / TSGroupAssigner-0.2-py3-none-any.whl
| Download URL | TSGroupAssigner-0.2-py3-none-any.whl |
|---|---|
| Size | 17.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa9ab482ff09c7968f0f541ba0a45b7472063057732c5445fa8765156b7768f6
|
|
BLAKE2b-256 checksum How to use checksums |
920973fe0e877b05a839f2dde8b60d574b45af53563e90c4d097b0277f0aa5f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1
|