From d00c59e6bc48b66cf0daa077d3ba3ce382e60ce1 Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Sun, 22 Dec 2019 07:27:27 +0000 Subject: Add a way to pass additional arguments into the module --- config.example.toml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config.example.toml') 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 = [] -- cgit v1.3.1-10-gc9f91