3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-01 17:16:39 +02:00

Update doc/Plugins/Plang.md

This commit is contained in:
Pragmatic Software 2020-10-01 17:37:12 -07:00
parent a55317d58d
commit 96eb19342a

View File

@ -42,12 +42,12 @@ is preserved in-between commands and the types of values is output along with th
[Plang](https://github.com/pragma-/Plang) lets you add custom built-in functions.
Several have been added for PBot; they are described here.
Function | Description
Function | Signature<hr>Description
--- | ---
[factget](#factget) | Retrieve metadata from factoids
[factset](#factset) | Sets metadata on factoids
[factappend](#factappend) | Appends to the `action` metadata on factoids
[userget](#userget) | Retrieve metadata from users
[factget](#factget) | `factget(channel: String, keyword: String, meta: String = "action") -> String | Null`<hr>Retrieve metadata from factoids
[factset](#factset) | `factset(channel: String, keyword: String, text: String, meta: String = "action") -> String`<hr>Sets metadata on factoids
[factappend](#factappend) | `factappend(channel: String, keyword: String, text: String) -> String`<hr>Appends to the `action` metadata on factoids
[userget](#userget) | `userget(name: String) -> Map | Null`<hr>Retrieve metadata from users
### factget
Use the `factget` function to retrieve metadata from factoids.