{"id":16389589,"url":"https://github.com/macpie/teamspeak-bot","last_synced_at":"2026-06-25T09:31:12.557Z","repository":{"id":77585518,"uuid":"39750765","full_name":"macpie/teamspeak-bot","owner":"macpie","description":null,"archived":false,"fork":false,"pushed_at":"2018-04-12T20:35:10.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-03T13:46:39.007Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/macpie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-07-27T02:20:26.000Z","updated_at":"2018-04-12T20:35:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"173c9c94-c5f4-471e-a2c5-f338a83712b0","html_url":"https://github.com/macpie/teamspeak-bot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macpie%2Fteamspeak-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macpie%2Fteamspeak-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macpie%2Fteamspeak-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macpie%2Fteamspeak-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/macpie","download_url":"https://codeload.github.com/macpie/teamspeak-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240216472,"owners_count":19766589,"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":[],"created_at":"2024-10-11T04:33:42.832Z","updated_at":"2025-11-13T09:03:11.493Z","avatar_url":"https://github.com/macpie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# teamspeak-bot\n\n## Run with docker\n\n`docker run -v \u003cconfig.json source\u003e:/opt/teamspeak-bot/config.json -it --rm --name teamspeak-bot macpie/teamspeak-bot`\n\n`docker run -v \u003cconfig.json source\u003e:/opt/teamspeak-bot/config.json -d --name teamspeak-bot macpie/teamspeak-bot`\n\n## Functions\n\n**AFK** will move any client idle for more then 2 hours to a specific channel (or default channel).\n\n## Events\n\nYou can subscribe to events like\n\n* `connected`/`disconnected` : bot connected/disconnected\n* `afk` : bot moved client to afk channel\n\n```javascript\nbot.events.on('connected', function() {\n    console.log('bot connected!');\n});\n\nbot.events.on('disconnected', function() {\n    console.log('bot disconnected!');\n});\n\nbot.events.on('afk', function(client) {\n    console.log(client.client_nickname, + \" moved!\");\n});\n```\n\n## Config\n\n```json\n// Rename to config.json\n{\n    \"host\": \"localhost\", // Teamspeak server ip/hostname\n    \"port\": 10011, // Teamspeak server port\n    \"server\": 1, // Server id usually 1\n    \"login\": \"admin\", // ServerQuery login\n    \"pwd\": \"password\", // ServerQuery password\n    \"botName\": \"TeamSpeak Bot\", // Bot name\n    \"afk\": { // afk function\n        \"channel\": 13, // channel id to move afk clients to\n        \"idle_time\": 60 // idle time after client will be move (in minutes) default 60\n    }\n}\n```\n\n## Usage\n\n`npm start` start bot\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacpie%2Fteamspeak-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacpie%2Fteamspeak-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacpie%2Fteamspeak-bot/lists"}