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 3 of 3
  1. #1
    Join Date
    February 2016
    Location
    São Paulo
    Posts
    4

    [Request]Reply message received on channel

    Hello boys,

    I am new to the forum, again with programming, so would like a help of experienced people in this forum.
    Would I like a plugin/script that detects one message on one specific channel and respond with a message I choose.

    I found this, but it does not understand the correct:

    Code:
    local function onTextMessageEvent(serverConnectionHandlerID, targetMode, toID, fromID, fromName, fromUniqueIdentifier, message, ffIgnored)
    	local csatorna = ts3.getChannelOfClient(serverConnectionHandlerID, fromID)
    
    		if string.find(string.lower(message), "take") then
    			ts3.requestSendChannelTextMsg(serverConnectionHandlerID, "Taken", csatorna)
    			return 0
    		end
    end
    http://forum.teamspeak.com/threads/1...-spams-chatbox



    I just change the channel name "csatorna" for my channel (Justera), and change the mesage "Take" for my mesage (Respawn list reset.)?

    Local Justera = ts3.getChannelOfClient (serverConnectionHandlerID, fromID)

    if string.find (string.lower (message), "Respawn list reset.") then


    And replacing the word "Taken," for my message (! Respawn 89)?

    Substitute csatorna to Justera TS Bot, which is the channel to which I must respond.

    ts3.requestSendChannelTextMsg (serverConnectionHandlerID, "89! respawn" Justera TS Bot)

    getting well:

    Code:
    local function onTextMessageEvent(serverConnectionHandlerID, targetMode, toID, fromID, fromName, fromUniqueIdentifier, message, ffIgnored)
    	local Justera = ts3.getChannelOfClient(serverConnectionHandlerID, fromID)
    
    		if string.find(string.lower(message), "Respawn list resetada.") then
    			ts3.requestSendChannelTextMsg(serverConnectionHandlerID, "!respawn 89", Justera TS Bot)
    			return 0
    		end
    end
    Example:

    Name:  exemplo.png
Views: 659
Size:  182.6 KB

    I want to answer in a different channel than the wrath message arrives.
    Last edited by Maimbe; February 15th, 2016 at 03:12 PM.

  2. #2
    Join Date
    September 2012
    Posts
    6,079
    you cannot send a message to a different channel, because you can only send (and receive) text messages in the channel you're currently in.
    When sending PMs please make sure to include a reference link to the thread in question in the body of your message.

  3. #3
    Join Date
    February 2016
    Location
    São Paulo
    Posts
    4
    Quote Originally Posted by Chris View Post
    you cannot send a message to a different channel, because you can only send (and receive) text messages in the channel you're currently in.
    I expressed wrong, the answer would be in the private channel.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [Resolved] [Feature request] Blinking in taskbar when message received
    By BullHorn in forum Suggestions and Feedback
    Replies: 1
    Last Post: March 10th, 2015, 09:32 PM
  2. [Rejected] Chat Window Focus & Received Message Sound
    By napok in forum Suggestions and Feedback
    Replies: 3
    Last Post: March 19th, 2013, 10:28 PM

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
  •