Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 15 of 21

Hybrid View

  1. #1
    Join Date
    November 2014
    Location
    Ciudad Real, Spain
    Posts
    41

    Query Notification stops after 60 seconds inactivity

    This was solved in post #20


    Hello, i'm new around here I'm not a native speaker.

    I'm programming a TS3 bot coded in python (quite complete, honestly. It has been working for a while with many many features... oops, off-topic) and I have a bug that it's getting me crazy. Right now my bot is working "fine" with a workaround, but that shouldn't happen.

    The issue
    Once it connects as serverquery, it will notifyregister for channel texts, however, if there is no activity in 75 seconds (sometimes around 60-75 seconds) the ServerQuery will still be connected BUT the notifications won't get to me.

    Tests
    1: I tried to notifyregister once again but the answer was that I was already registered. That's odd since I don't get any notification.
    2: I asked the bot to say "hi" each 50 seconds, notifications will always get to me. (but it's annoying as hell).
    3: I tested several time with many people that if we keep chatting and don't stop for at least 60 seconds, the notificacions still get to me.
    4: This is my actual workaround: I force the bot to leave the channel and join again each 50 seconds. It works but leaving a channel can mess around my code for events when someone joins and leaves the channel (no matter how fast the bot is leaving and joining back, he shouldn't leave in the first place).

    Telnet commands used in order (just in case you want to replicate it)
    login(client_login_name=USER, client_login_password=PASS)
    use(sid=SID)
    clientupdate(client_nickname="Bot")
    channelfind(For the 1st channel to join)
    channelfind(For a 2nd channel to leave and come back)
    whoami(to get my info)
    clientmove(to join the 1st channel)
    servernotifyregister(textchannel and channel)

    So...
    Am I missing something here or the notifications stop after a while if there is no channel activity in there? Is there any way to fix this problem?
    Last edited by dante696; November 21st, 2014 at 07:20 AM. Reason: merged

  2. #2
    Join Date
    January 2010
    Location
    El Prat de Llobregat (Barcelona, Spain)
    Posts
    2,698
    Quote Originally Posted by Saelyth View Post
    Am I missing something here or the notifications stop after a while if there is no channel activity in there? Is there any way to fix this problem?
    What server version are you using?

    It seems this issue is resolved in server 3.0.11.1, as it's said here:
    http://forum.teamspeak.com/showthrea...889#post392889

  3. #3
    Join Date
    November 2014
    Location
    Ciudad Real, Spain
    Posts
    41
    Quote Originally Posted by PotaBlava View Post
    What server version are you using?

    It seems this issue is resolved in server 3.0.11.1, as it's said here:
    http://forum.teamspeak.com/showthrea...889#post392889
    Doh!
    I am using Version:3.0.10.3
    Thank you for the answer!

  4. #4
    Join Date
    November 2014
    Location
    Ciudad Real, Spain
    Posts
    41
    I will update here to say that it's not fixed. My bot keeps not getting channel notifications after 60 seconds if there is nobody chatting in the channel. Tested in version 3.0.11.1

  5. #5
    Join Date
    June 2008
    Posts
    18,513
    We can not reproduce this anymore.
    Please tell us your how to without 3rd Party software. Which commands does he use etc.
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  6. #6
    Join Date
    November 2014
    Location
    Ciudad Real, Spain
    Posts
    41
    Here's an screenshot of the telnet commands used and a chat proof that it stops after 60 seconds (more or less) since last message: Click image for larger version. 

Name:	sSC0MqX.png 
Views:	126 
Size:	70.9 KB 
ID:	11610

    The code used to read notifications is written on python this way:
    Code:
            while True:
                answer = self.ts3conn.telnet_conn.read_until(b'\r\n', 1).strip()
    And the connection itself is saved as this:
    Code:
    self.ts3conn = ts3.query.TS3Connection(HOST, PORT)
    It uses this API: http://py-ts3.readthedocs.org/en/latest/api/query.html

    If you want, I can provide of a demo bot with no features but the connection itself so you can check how it actually works. No software needed except python 3.4.1 itself.

  7. #7
    Join Date
    December 2009
    Location
    Germany
    Posts
    2,360
    Quote Originally Posted by dante696 View Post
    We can not reproduce this anymore.
    Please tell us your how to without 3rd Party software. Which commands does he use etc.
    Well... ;-)

    Quote Originally Posted by Saelyth View Post
    Telnet commands used in order (just in case you want to replicate it)
    login(client_login_name=USER, client_login_password=PASS)
    use(sid=SID)
    clientupdate(client_nickname="Bot")
    channelfind(For the 1st channel to join)
    channelfind(For a 2nd channel to leave and come back)
    whoami(to get my info)
    clientmove(to join the 1st channel)
    servernotifyregister(textchannel and channel)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Evaluation] Query stops working
    By numma_cway in forum Bug Reports [EN/DE]
    Replies: 3
    Last Post: September 9th, 2014, 07:15 AM
  2. Replies: 0
    Last Post: January 22nd, 2012, 10:19 AM
  3. TS3_RC1 server stops after a few seconds
    By {PST}Nerd in forum Server Support
    Replies: 9
    Last Post: June 7th, 2011, 03:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •