aboutsummaryrefslogtreecommitdiff
path: root/config.example.toml
diff options
context:
space:
mode:
authorGravatar JustAnotherArchivist2019-12-22 07:27:27 +0000
committerGravatar JustAnotherArchivist2019-12-22 07:27:27 +0000
commitd00c59e6bc48b66cf0daa077d3ba3ce382e60ce1 (patch)
treea2ee8ec901a5e35aaf6a25ffc2918c04a990393b /config.example.toml
parentAdd support for transformation/translation modules that do arbitrary request ... (diff)
signature
Add a way to pass additional arguments into the module
Diffstat (limited to 'config.example.toml')
-rw-r--r--config.example.toml2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.example.toml b/config.example.toml
index 1861ef4..97cf9d5 100644
--- a/config.example.toml
+++ b/config.example.toml
@@ -24,3 +24,5 @@
#auth = false
# module is the path to a Python source file that handles the message transformation. It must contain a coroutine function 'process' that takes one argument, the aiohttp.web.Request object, and returns the message string to be sent to IRC, which must not contain any linebreaks (CR or LF). It may raise an aiohttp.web.HTTPException to stop processing; any other exception will also cause the processing to be stopped and a '400 Bad Request' response to be returned to the client. The empty default value (None) causes the default processor to be used, which expects a straight message in the request body (with an optional trailing CR+LF or LF) and performs no transformations other than encoding the message as UTF-8.
#module =
+ # moduleargs are additional arguments to be passed into the module's process function after the request object. Example use: Gitea webhook secret key
+ #moduleargs = []