예제 #1
0
def joinchannel(args):
    print(" ")
    print("CMD: Join Channel")
    print(args)
    print(" ")

    _target = "Anon_Gaming"
    _endTarg = args[0]

    if _target in definedClients:
        _target = definedClients[_target]

    _targCli = ts3Api.getClient(name=_target)

    if _endTarg in definedClients:
        _endTarg = definedClients[_endTarg]

    _endCli = ts3Api.getClient(name=_endTarg)

    ts3Api.move(clid=_targCli['clid'], cid=_endCli['cid'])

    if _target != "Anon_Gaming":
        textTSpeech.TTS(text="You moved " + _targCli['client_nickname'])
    else:
        textTSpeech.TTS(text="You joined " + _endCli['client_nickname'] +
                        "'s Channel")
예제 #2
0
def bringhere(args):
    print(" ")
    print("CMD: bring client here")
    print(args)
    print(" ")
    _target = args[0]
    _targCli = ts3Api.getClient(name=_target)
    _endCli = ts3Api.getClient(name="Anon_Gaming")

    ts3Api.move(clid=_targCli['clid'], cid=_endCli['cid'])
    textTSpeech.TTS(text="You brought " + _target)
예제 #3
0
def kickClientChannel(args):
    print(" ")
    print("CMD: Kick client")
    print(args)
    print(" ")
    _target = args[0]
    if _target in definedClients:
        _target = definedClients[_target]
    _targCli = ts3Api.getClient(name=_target)

    ts3Api.kick(clid=_targCli['clid'], reasonid=4)
    if _target != "Anon_Gaming":
        textTSpeech.TTS(text=_target + ", Was kicked from the channel")
    else:
        textTSpeech.TTS(text="You kicked yourself from a channel")