Ejemplo n.º 1
0
me = FakeClient(fakeConsole,
                name="me",
                guid="zaerazerazerzaer",
                groupBits=128,
                team=TEAM_UNKNOWN,
                ip=config.get("me", "ip"))

# force me to the managed channel
tsclient = p.tsGetClient(me)
while not tsclient:
    instruct("connect to the teamspeak server")
    tsclient = p.tsGetClient(me)

me.connects(0)

if not p.tsIsClientInB3Channel(tsclient):
    p.tsMoveTsclientToChannelId(tsclient, p.tsChannelIdB3)

time.sleep(.5)
me.says('!ts')

time.sleep(.5)
me.says('!ts disjoin')

time.sleep(.5)
me.says('!ts')

time.sleep(.5)
me.says('!ts join')

time.sleep(.5)
def instruct(instructions):
    print "\n\n> %s" % instructions
    raw_input("type ENTER when ready")


me = FakeClient(fakeConsole, name="me", guid="zaerazerazerzaer", groupBits=128, team=TEAM_UNKNOWN, ip=config.get("me", "ip"))

# force me to the managed channel
tsclient = p.tsGetClient(me)
while not tsclient:
    instruct("connect to the teamspeak server")
    tsclient = p.tsGetClient(me)

me.connects(0)

if not p.tsIsClientInB3Channel(tsclient):
    p.tsMoveTsclientToChannelId(tsclient, p.tsChannelIdB3)

time.sleep(.5)
me.says('!ts')

time.sleep(.5)
me.says('!ts disjoin')

time.sleep(.5)
me.says('!ts')

time.sleep(.5)
me.says('!ts join')

time.sleep(.5)