Online and offline status message

mpahic's Avatar

mpahic

03 Jun, 2009 03:20 PM via web

I've been trying to suggest this feature a couple of times, but I don't know if my messages went to spam or were ignored. I would need my bot to be contacted when my users go online or offline. Also can my bot not respond when it gets a certain message? Something like when it receives it prevents it to respond.

  1. Support Staff 2 Posted by Adam Kalsey on 03 Jun, 2009 03:30 PM

    Adam Kalsey's Avatar

    Pushing presence to you is something that's on our roadmap. We plan
    providing an extension to the API and sending all of your user's
    status changes to you as they happen. In the meantime, you can call
    getuser and get the status of any user.

    If you want your bot to ignore certain messages or messages containing
    certain text, you can do that on your end. In your application code,
    just look for that text and return an empty response to us. If your
    response is empty, we won't reply.

  2. 3 Posted by mpahic on 03 Jun, 2009 03:43 PM

    mpahic's Avatar

    After checking my code, I saw why I've been receiving empty messages from bot. The only thing my bot responds is

    echo "<goto=".$_REQUEST['step'].">" // going to previous step

    And this creates an empty message for the user. That is why i've been wanting the tag :D

  3. Support Staff 4 Posted by Adam Kalsey on 03 Jun, 2009 05:04 PM

    Adam Kalsey's Avatar

    If you send nothing at all (not even whitespace) then nothing should
    get sent to the user. We actually still send a blank packet to the IM
    network, but as far as I know, blank messages are then suppressed.

    In our next release, we'll suppress the sending of any message that is
    empty or contains nothing but whitespace.

  4. 5 Posted by mpahic on 03 Jun, 2009 08:33 PM

    mpahic's Avatar

    Thank you for your quick responses. I can't wait for your next release :D

    Also I think you did a great job making this help-desk. In google groups I tried to help some users that had problems with the code but none of my messages got through. Hopefully now we can help each other... ...and thanks again.

Comments are currently closed for this discussion. You can start a new one.