{"id":22341847,"url":"https://github.com/mightybroccoli/tsgroupassigner","last_synced_at":"2025-03-26T09:28:12.665Z","repository":{"id":52413349,"uuid":"227412088","full_name":"mightyBroccoli/TSGroupAssigner","owner":"mightyBroccoli","description":"TeamSpeak date based group assigner","archived":false,"fork":false,"pushed_at":"2021-04-29T21:35:05.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T08:11:33.697Z","etag":null,"topics":["datetime","teamspeak-query","teamspeak3","teamspeak3-bot"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mightyBroccoli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-11T16:33:33.000Z","updated_at":"2021-04-29T21:35:04.000Z","dependencies_parsed_at":"2022-08-26T16:40:17.785Z","dependency_job_id":null,"html_url":"https://github.com/mightyBroccoli/TSGroupAssigner","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mightyBroccoli%2FTSGroupAssigner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mightyBroccoli%2FTSGroupAssigner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mightyBroccoli%2FTSGroupAssigner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mightyBroccoli%2FTSGroupAssigner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mightyBroccoli","download_url":"https://codeload.github.com/mightyBroccoli/TSGroupAssigner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245625272,"owners_count":20646124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datetime","teamspeak-query","teamspeak3","teamspeak3-bot"],"created_at":"2024-12-04T08:08:23.429Z","updated_at":"2025-03-26T09:28:12.647Z","avatar_url":"https://github.com/mightyBroccoli.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TeamSpeak GroupAssigner\n[![PyPI](https://img.shields.io/pypi/v/TSGroupAssigner.svg)](https://pypi.python.org/pypi/TSGroupAssigner)\n[![PyPI](https://img.shields.io/pypi/pyversions/TSGroupAssigner.svg)](https://pypi.python.org/pypi/TSGroupAssigner)\n[![CodeFactor](https://www.codefactor.io/repository/github/mightybroccoli/TSGroupAssigner/badge)](https://www.codefactor.io/repository/github/mightybroccoli/TSGroupAssigner)\n\n## Overview\nTSGroupAssigner is a module which allows to automatically assign server groups to voice clients, if they connect within \na specific date range.\n\n### example\nThis small example script could be called before christmas to assign the group `24` to every voice client connecting\nto the server id `1`.\nThe process will terminate gracefully, when the configured date range is exceeded.\n\n```python\nimport datetime as dt\nimport logging\nfrom TSGroupAssigner import GroupAssigner, DateException\n\nlogger = logging.getLogger()\nlogger.setLevel(logging.INFO)\n\nparams = {\n    'host': 'localhost',\n    'port': 10011,\n    'user': 'serveradmin',\n    'password': '5up3r_53cr37',\n    'sid': 1,\n    'gid': 24\n}\n\ntarget = dt.date(year=2020, month=2, day=14)\nduration = dt.timedelta(days=2)\n\ntry:\n    GroupAssigner(date=target, nick=\"James\", delta=duration, **params).start()\nexcept DateException as err:\n    logger.error(err)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmightybroccoli%2Ftsgroupassigner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmightybroccoli%2Ftsgroupassigner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmightybroccoli%2Ftsgroupassigner/lists"}