Skip to content

Commit

Permalink
Added functions to add or remove servergroups
Browse files Browse the repository at this point in the history
  • Loading branch information
derkalle4 committed May 25, 2015
1 parent e8011cc commit 90e0d94
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion plugins/core_TS3clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def grouplist(self):
if nextGrouplist <= time.time():
grouplist = ts3tools.parse_raw_data(base.send_receive('servergrouplist'), 'sgid')
nextGrouplist = time.time() + nextGrouplistInterval
print(grouplist)
return grouplist

def clientmove(self, clid, cid):
Expand All @@ -57,3 +56,13 @@ def clientinfo(self, clid):
query = base.send_receive('clientinfo clid=' + clid)
parsed = ts3tools.parse_raw_answer(query)
return parsed

def client_add_servergroup(self, sgid, cldbid):
query = base.send_receive('servergroupaddclient sgid=' + sgid + ' cldbid=' + cldbid)
parsed = ts3tools.parse_raw_answer(query)
return parsed

def client_del_servergroup(self, sgid, cldbid):
query = base.send_receive('servergroupdelclient sgid=' + sgid + ' cldbid=' + cldbid)
parsed = ts3tools.parse_raw_answer(query)
return parsed

0 comments on commit 90e0d94

Please sign in to comment.