From 7c6359481ad2c8fc7c37724c4294f9c581f72910 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Thu, 3 Sep 2020 16:41:19 -0700 Subject: [PATCH] doc/Plugins/Plang.md: add type annotations --- doc/Plugins/Plang.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/Plugins/Plang.md b/doc/Plugins/Plang.md index 6cd664ab..c69280d1 100644 --- a/doc/Plugins/Plang.md +++ b/doc/Plugins/Plang.md @@ -38,7 +38,7 @@ is preserved in-between commands and the types of values is output along with th Several have been added for PBot; they are described here. ### factget - factget(channel, keyword, meta = "action") + factget(channel: String, keyword: String, meta: String = "action") -> String Use the `factget` function to retrieve metadata from factoids. @@ -48,7 +48,7 @@ parameter can be omitted and will default to `"action"`. The `factget` function returns a `String` containing the value of the factoid metadata key. ### factset - factset(channel, keyword, text) + factset(channel: String, keyword: String, text: String) -> String Use the `factset` function to set the `action` metadata value for factoids. @@ -57,7 +57,7 @@ The `factset` function takes three parameters: `channel`, `keyword` and `text`. The `factset` function returns a `String` containing the value of `text`. ### factappend - factappend(channel, keyword, text) + factappend(channel: String, keyword: String, text: String) -> String Use the `factappend` function to append text to the `action` metadata for factoids. @@ -67,7 +67,7 @@ The `factappend` function returns a `String` containing the value of factoid's ` metadata with `text` appended. ### userget - userget(name) + userget(name: String) -> Map Use the `userget` function to retrieve user metadata.