Project

tsquery

0.0
No commit activity in last 3 years
No release in over 3 years
Automate your TeamSpeak3 server with Ruby!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.7
~> 5.0
~> 10.0
 Project Readme

tsquery Build Status

Automate your TeamSpeak 3 server with Ruby!

Learn about TeamSpeak 3 ServerQuery here.

Tsquery

tsquery = Tsquery.new
tsquery.connect server: "127.0.0.1"

tsquery.use 1
tsquery.login password: "password"
tsquery.serveredit virtualserver_name: "My TeamSpeak 3 Server"
tsquery.close

LazyTsquery

Using Tsquery automated? Delay the connection as long as possible:

tsquery = LazyTsquery.new(Tsquery.new)
tsquery.connect server: "127.0.0.1"

# `use` and `login` are delayed as long as possible.
tsquery.use 1
tsquery.login password: "password"

# Now we are hitting the server!
tsquery.serveredit virtualserver_name: "My TeamSpeak 3 Server"
tsquery.close

The following example will never connect to the server.

tsquery = LazyTsquery.new(Tsquery.new)
tsquery.connect server: "127.0.0.1"

tsquery.use 1
tsquery.login password: "password"
tsquery.close

RetryingTsquery

💩y connection? Retry failing commands:

tsquery = RetryingTsquery.new(Tsquery.new)
# `connect` will be retried up to 3 times.
tsquery.connect server: "127.0.0.1"

tsquery.use 1
tsquery.login password: "password"

# `serveredit` and other commands will be retried too!
tsquery.serveredit virtualserver_name: "My TeamSpeak 3 Server"
tsquery.close

I want it all!

tsquery = LazyTsquery.new(RetryingTsquery.new(Tsquery.new))

Contributing

  1. Fork it ( https://github.com/tsjoin/tsquery/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request