Skip to main content

date based TeamSpeak Group Assigner

Project description

TeamSpeak GroupAssigner

PyPI PyPI CodeFactor

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=2019, month=24, day=12)
duration = dt.timedelta(days=2)

try:
    GroupAssigner(date=target, delta=duration, **params).start()
except DateException as err:
    logger.error(err)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for TSGroupAssigner, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size TSGroupAssigner-0.1.1-py3-none-any.whl (17.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size TSGroupAssigner-0.1.1.tar.gz (16.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page