Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coddingtonbear/python-teamspeak3
A python interface for interacting with Teamspeak 3 clients.
https://github.com/coddingtonbear/python-teamspeak3
Last synced: 2 months ago
JSON representation
A python interface for interacting with Teamspeak 3 clients.
- Host: GitHub
- URL: https://github.com/coddingtonbear/python-teamspeak3
- Owner: coddingtonbear
- License: mit
- Created: 2012-02-16T01:49:08.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-08-10T22:11:57.000Z (over 10 years ago)
- Last Synced: 2024-10-03T08:17:19.841Z (3 months ago)
- Language: Python
- Homepage:
- Size: 214 KB
- Stars: 7
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
# Teamspeak3 API
This python module allows you to interact with an instance of Teamspeak running
on your computer using Python rather than using the built-in lua interface.## Use
I wrote this library to satisfy a need on my part, so you can find a detailed
example at [teamspeak-notification](https://bitbucket.org/coddingtonbear/teamspeak-notification), but
briefly, let's go over subscribing to incoming messages the hard way:import teamspeak3
client = teamspeak3.Client()
client.send_command(
teamspeak3.Command(
'clientnotifyregister',
event='any',
schandlerid='0'
)
)while True:
messages = client.get_messages()
for message in messages:
if message.command == 'notifytextmessage':
print messagein the above, you can see how you first create the client instance, and then
send to teamspeak a command object asking that it register for incoming
notifications-- I have written a shortcut for subscriptions, too, so the above
can be simplified to:import teamspeak3
client = teamspeak3.Client()
client.subscribe()while True:
messages = client.get_messages()
for message in messages:
if message.command == 'notifytextmessage':
print message