aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-05-22 09:52:18 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-05-22 09:52:18 +0200
commitc0aeee3d3eb4abc006a3cfd4f57da7ab9f290e03 (patch)
tree67d447481ee9b3353fc65fdd0583730c55850e6a /doc
parent8284035ad8e945f70859c3a9a270058546d11cb6 (diff)
doc/mod/notification-matrix: describe how to declare functions...
... to use them in own scripts.
Diffstat (limited to 'doc')
-rw-r--r--doc/mod/notification-matrix.md10
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/mod/notification-matrix.md b/doc/mod/notification-matrix.md
index 6bb04b6..639fa98 100644
--- a/doc/mod/notification-matrix.md
+++ b/doc/mod/notification-matrix.md
@@ -90,8 +90,8 @@ Usage and invocation
There's nothing special to do. Every script or function sending a notification
will now send it to your Matrix account.
-But of course you can send notifications directly or use a function in your
-own scripts. Give it a try:
+But of course you can use the function to send notifications directly. Give
+it a try:
$SendMatrix "Subject..." "Body..."
@@ -100,6 +100,12 @@ methods:
$SendNotification "Subject..." "Body..."
+To use the functions in your own scripts you have to declare them first.
+Place this before you call them:
+
+ :global SendMatrix;
+ :global SendNotification;
+
See also
--------