Basic Auto Reply

This is a simple auto reply lua script, here is what it looks like

Lua Script:

events.addCallback("incoming_message", function(message)
    local text = message.text;
    local jid  = message.jid;

    client.sendMessage("Hello from lua! \nMessage: " .. text, jid);
end)

Last updated

Was this helpful?