Skip to content

Instantly share code, notes, and snippets.

@lancepioch
Created June 6, 2015 01:02
Show Gist options
  • Save lancepioch/d0668c470e2901680da0 to your computer and use it in GitHub Desktop.
Save lancepioch/d0668c470e2901680da0 to your computer and use it in GitHub Desktop.
Take a Ride
<?php
$teamspeakServer = TeamSpeak3::factory(config('services.teamspeak.connect'));
$teamspeakServer->selfUpdate(['client_nickname' => '~Display~']);
$channels = $teamspeakServer->channelList();
$clients = $teamspeakServer->clientList();
foreach ($clients as $client) {
if ($client['client_database_id'] == '298336') {
foreach ($channels as $channel) {
$client->move($channel['cid']);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment