尝试通过lua为Teamspeak设置自动回复

时间:2015-03-02 21:13:03

标签: plugins lua teamspeak

我在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

响应者工作得很好。当我在特定频道时,我试图将其设置为回复。

0 个答案:

没有答案