date based TeamSpeak Group Assigner
Project description
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)
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
TSGroupAssigner-0.2.tar.gz
(17.3 kB
view hashes)
Built Distribution
Close
Hashes for TSGroupAssigner-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa9ab482ff09c7968f0f541ba0a45b7472063057732c5445fa8765156b7768f6 |
|
MD5 | d82f1feb163a23bdbb33ada13fc78c14 |
|
BLAKE2b-256 | 920973fe0e877b05a839f2dde8b60d574b45af53563e90c4d097b0277f0aa5f3 |