0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Ruby interface for TeamSpeak 3's server query api.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.14
~> 5.8
~> 11.2
~> 0.42
 Project Readme

teamspeak-ruby

[Build Status] (https://travis-ci.org/matthin/teamspeak-ruby) [Gem Version] (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