The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

bot.autoreply

Provides functions which allow the creation of rules to be evaluated against incoming messages (and their metadata) and potentially trigger the execution of expressions in response when those conditions are met.

autoreply

Description

Usage

<name> (<condition expression>) (<response expression>)

Examples

    (autoreply "im-down" (match "qtiyd" (bot.messages/message)) (str "^"))