Community Forums Today's Posts     Member List     Archive    
Results 1 to 14 of 14
  1. #1
    Join Date
    Dec 2009
    Location
    Hungary
    Posts
    424

    Lightbulb [REQUEST]Auto-reply to private messages

    Hi,

    I was searching for a plugin that auto-reply to anybody (private chat) while it is active. For example during gaming or AFK. Do you know a plugin somewhere offering this functionality? Thank you.

  2. #2
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    2,042
    Code:
    local function onTextMessageEvent(serverConnectionHandlerID, targetMode, toID, fromID, fromName, fromUniqueIdentifier, message, ffIgnored)
        local  response = "You managed to send me a private Message"
        if targetMode = ts3defs.TextMessageTargetMode.TextMessageTarget_CLIENT then
            ts3.requestSendPrivateTextMsg(serverConnectionHandlerID, response, fromID)
        end
    end
    Untested LUA Code. No guarantees whatsoever! Use at your own Risk!

  3. #3
    Join Date
    Oct 2011
    Location
    United States
    Posts
    18
    I've created the plugin for you so you don't have to worry about messing with everything. I won't be supporting it after this point in development however. It currently works for Win32 and Win64 bit versions of teamspeak 3 (API 16). I'm also including the source code in the download if anyone wants to make their own custom version of the plugin. As long as this plugin is turned on, it automatically sends a reply to anyone who sends you a PM. There is an auto-installer included so just run Auto-Responder.ts3_plugin after unzipping the download to install the plugin. Hope this helps you guys.
    Attached Files Attached Files

  4. #4
    Join Date
    Jul 2010
    Location
    Chicago
    Posts
    102
    Doesn't test_plugin.dll do just this?

  5. #5
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    2,042
    No it does not, it has example Code in the Source but this Code part is disabled as it would be a nightmare!
    What it does (and that is annoying enough) is to send a PM when you get poked.

  6. #6
    Join Date
    Apr 2012
    Posts
    3
    thanks domert its really helpful, i was looking for a lua one , but yours is just what i needed, the problema will be if they update again the API :l

  7. #7
    Join Date
    Oct 2011
    Location
    United States
    Posts
    18
    I (or another programmer) should be able to recompile the code really quick into the new API. That's one of the reasons I provided the source code. I just don't want to support any extra functionality. If someone wanted to pick up the project where I left off they could do things like letting users customize their own message, maybe have multiple messages that are linked to the plugin hotkeys. Maybe even add in a timer to kick in or detect when you're playing certain games in the process list. But since I kept seeing people ask for something like it I just threw a basic one together. I don't know LUA or I would have given you that one.

    I can tell you that the LUA script doesn't seem to have any sort of check in place to ignore when you (the plugin user) send a private message. So the outcome of that script would most likely be someone sends you a message, the auto-reply sends one back which triggers the script and sends a message from you to you with the auto-reply which it then replies to and replies to and replies to (you get the idea).

  8. #8
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    2,042
    You can easily accommodate for this contingency by checking your ClientID against the sender Client ID and only act if they are different.

  9. #9
    Join Date
    Oct 2011
    Location
    United States
    Posts
    18
    Quote Originally Posted by SilentStorm View Post
    You can easily accommodate for this contingency by checking your ClientID against the sender Client ID and only act if they are different.
    Oh of course, I did that inside my plugin and made sure everything was all good. I just meant that the LUA code itself doesn't appear to have that in place so if someone wanted to make a LUA version of this they would have to alter the little snippet of lua code.

  10. #10
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    2,042
    Yeah indeed I didn't put that in when I quickly put that Code up there... Disclaimer and Warning is there for a Reason
    It also won't work all by itself, one would need to create the outer shell for ts to load and work with it.

  11. #11
    Join Date
    Dec 2009
    Location
    Hungary
    Posts
    424
    Thank you all for your help, works like a charm!

  12. #12
    Join Date
    Oct 2011
    Location
    United States
    Posts
    18
    No problem, happy to help out when I can. If you want to show some love, just click the reputation button and add to my rep.

  13. #13
    Join Date
    May 2012
    Posts
    5
    Hi,

    can anyone compile the plugin for API 18? Or tell me how I can do that?

    Regards,
    fusi

  14. #14
    Join Date
    Oct 2011
    Location
    United States
    Posts
    18
    Didn't realize people were still interested in this. Well once again, just a very basic version, all I did was update the API to 19. I only did a basic test on it and everything seemed to be fine, comes with the source code and a teamspeak 3 auto-installer.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. private messages
    By backdrop001 in forum General Questions
    Replies: 2
    Last Post: 11-07-2011, 08:11
  2. [Question] private messages
    By BlueRey in forum Permission System
    Replies: 7
    Last Post: 22-03-2010, 21:11
  3. blocking Private Messages
    By eggman2099 in forum [TeamSpeak 2] Client Support
    Replies: 1
    Last Post: 28-08-2008, 17:44

Tags for this Thread

Posting Permissions

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