我在 TeamSpeak 社区论坛上提问过,要么收到了非常粗鲁或冷淡的评论。这是我所拥有的,但没有成功。
function onTextMessageEvent(serverConnectionHandlerID, targetMode, toID, fromID, fromName, fromUniqueIdentifier, message, ffIgnored)
myChannelID = ts3.getChannelOfClient(serverConnectionHandlerID, myClientID)
if myChannelID == 56115 then
function onTextMessageEvent(serverConnectionHandlerID, targetMode, toID, fromID, fromName, fromUniqueIdentifier, message, ffIgnored)
myID = ts3.getClientID(serverConnectionHandlerID)
response = [[I'm sorry,
I can't answer your message right now. If you need my help, please send me a ticket! I am a bit busy right now and really need to concentrate.
Thanks! :)]]
if fromID ~= myID and toID == myID then
ts3.requestSendPrivateTextMsg(serverConnectionHandlerID, response, fromID)
end
end
end
end
响应者工作得很好。我正在尝试将其设置为在我处于特定频道时回复。