Recently I started working on a script for TS3 in lua to try and make a simple bot that responds to certain words (commands).
I tried running the script multiple times using "/lua load V3NBOT/init.lua" it keeps saying "script loaded" but when someone tries to do the command or type the keyword it doesn't work, I spend a lot of time trying to figure out the problem.

Can anyone help me out and check what is wrong with this code?


Code:
require("ts3init")      

local MODULE_NAME = "V3NBOT"

local function onConnectStatusChangeEvent(serverConnectionHandlerID, status, errorNumber)
    local myID = ts3.getClientID(serverConnectionHandlerID)
end

local function onTextMessageEvent(serverConnectionHandlerID, targetMode, toID, fromID, fromName, fromUniqueIdentifier, message, ffIgnored)
   if targetMode == 2 then
        if string.find(string.lower(message), "!help") then
           ts3.requestSendChannelTextMsg(serverConnectionHandlerID, 'The Commands are\n"!help" - This one', fromID)
		   
        end
    end
end