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 specified date range.
example
This small example could be called on the 23.12 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
logger = logging.getLogger()
logger.setLevel(logging.INFO)
creds = {
'host': 'localhost',
'port': 10011,
'user': 'serveradmin',
'password': '5up3r_53cr37',
'sid': 1,
'gid': 24
}
target = dt.date(year=2019, month=24, day=12)
duration = dt.timedelta(days=2)
GroupAssigner(date=target, delta=duration, **creds).start()
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.1.tar.gz
(16.7 kB
view hashes)
Built Distribution
Close
Hashes for TSGroupAssigner-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc4f39ffac1a5430147618306eaf2708ae6a2247a93424d4d9c73ea1fa17413f |
|
MD5 | b79c54b51f6a98c00c4d7136156d99b8 |
|
BLAKE2b-256 | d74eb750db2f518a9f66f8285303c1b1d8825e1faf44036001b665cc65d7392b |