teamspeak-ruby
[] (https://travis-ci.org/matthin/teamspeak-ruby) [] (http://badge.fury.io/rb/teamspeak-ruby)
Ruby interface for TeamSpeak 3's [server query] (http://media.teamspeak.com/ts3_literature/TeamSpeak%203%20Server%20Query%20Manual.pdf) api. Built against the manual released on 2012-02-29.
Install
gem install teamspeak-ruby
Usage
require 'teamspeak-ruby'
ts = Teamspeak::Client.new
ts.login('serveradmin', 'T5I3A1G8')
ts.command('use', sid: 1)
ts.command('clientlist').each do |user|
if user['client_nickname'] == 'Example Client'
ts.command('clientpoke', clid: user['clid'], msg: 'Just an example!')
end
end
puts ts.command('hostinfo')['host_timestamp_utc']
ts.disconnect