Table of Contents

Autoresponder Global Scripting

For scripting to modify the autoresponder text which is embedded in the autoresponder itself, see Autoresponder Scripting

The Autoresponder Global Script is executed for every autoresponse. It is stored in the 'Autoresponder.lua' script in Settings → Scripts

It can contain two function hooks. For each of these, there are two global variables set:

PreProcessAutoresponder

This allows the script to see the autoresponder data before the autoresponse is generated and potentially alter the autoresponder definition to be used during generation.

PreProcessAutoresponder(username, incoming_message)

The function can alter the Autoresponder global variable, and the altered version will be used for the rest of the autoresponder processing. If the Text field is set to blank, then the autoresponse will be skipped (and any side-effects, such as copying the original message will also be skipped)

PostProcessAutoresponder

This allows the script to see the autoresponder data after the autoresponse is generated, and potentially alter relevant data

PostProcessAutoresponder(username, generated_message, incoming_message)

The function returns one value, which is the new autoresponder message text. So, it should at least return the second parameter provided to it. If this is blank, then the autoresponse will not be generated, and any side-effects will not take place.

There are extra global variables provided to the PostProcessAutoresponder function as well as the Autoresponder and AutoresponderRule global variables described above.

The function can alter the Autoresponder global variable as well as most of the global variables listed below: