Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Plugins 试图通过lua为Teamspeak设置自动应答器_Plugins_Lua_Teamspeak - Fatal编程技术网

Plugins 试图通过lua为Teamspeak设置自动应答器

Plugins 试图通过lua为Teamspeak设置自动应答器,plugins,lua,teamspeak,Plugins,Lua,Teamspeak,我曾在TeamSpeak社区论坛上提问,要么收到非常粗鲁的评论,要么收到冷淡的评论。这是我迄今为止所做的,但没有成功 function onTextMessageEvent(serverConnectionHandlerID, targetMode, toID, fromID, fromName, fromUniqueIdentifier, message, ffIgnored) myChannelID = ts3.getChannelOfClient(serverConnectionH

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

应答器工作正常。我正在尝试将其设置为在特定频道中回复。

这是否不起作用?以什么方式?在这种环境下,重新定义这样的函数正确吗?我希望能提供更多信息。它根本不起作用。没有日志可供我查看,以了解为什么在收到私人短信时该功能未激活;我已经对照服务器检查了通道ID。我不确定重新定义它们是否正确。我不是一个专业的程序员,所以对这类事情我是相当陌生的。你能把调试日志添加到你的函数中,看看它们是否被调用吗?我对这方面很陌生。无论我身在何处,每当有人给我发信息时,我都能让自动应答器工作,这让我感到惊讶。我根本不知道如何添加调试日志记录。工作代码与此代码到底有什么区别?