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:
http://ift.tt/1Tlt2HH
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:
Example:
I want to answer in a different channel than the wrath message arrives.:D
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
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
I want to answer in a different channel than the wrath message arrives.:D
0 commentaires:
Enregistrer un commentaire