3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 22:09:26 +01:00

ActionTrigger: improve docs in comment header

This commit is contained in:
Pragmatic Software 2021-06-23 16:06:15 -07:00
parent 38985e1ac7
commit 8094db4f36

View File

@ -1,10 +1,17 @@
# File: ActionTrigger.pm # File: ActionTrigger.pm
# #
# Purpose: provides interface to set/remove/modify regular expression triggers # Purpose: provides interface to set/remove/modify regular expression triggers
# to execute a command. # which invoke bot commands when matched against IRC messages.
# #
# Usage: actiontrigger add <#channel or global> <capability> <rate-limit (in seconds)> <regex trigger> <command> # Usage: actiontrigger add <#channel or global> <capability> <rate-limit (in seconds)> <regex trigger> <command>
# #
# Note that ActionTrigger does not match on raw IRC lines. It matches on a
# simplified message format:
#
# "<hostmask> <action> <arguments>"
#
# where <action> can be PRIVMSG, ACTION, KICK, JOIN, PART or QUIT.
#
# Examples: # Examples:
# #
# Greet a nick when they join the channel: # Greet a nick when they join the channel: