3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-22 03:49:29 +01:00

doc/Factoids.md: minor improvement

This commit is contained in:
Pragmatic Software 2020-01-21 18:34:28 -08:00
parent 2167723190
commit eb0ac10cdc

View File

@ -449,22 +449,11 @@ To remove a factoid, use the `factrem` or `forget` command.
Usage: `factrem [channel] <keyword>` `forget [channel] <keyword>`
### factalias
To create an factoid that acts as an alias for a command, use the `factalias` command or set the factoid's `action` metadata to `/call <command>`.
To create an factoid that acts as an alias for a command, use the `factalias`
command or create a factoid with its text set to `/call <command>`.
Usage: `factalias [channel] <keyword> <command>`
<pragma-> !factadd offtopic /say In this channel, $args is off-topic.
<pragma-> !offtopic C++
<PBot> In this channel, C++ is off-topic.
<pragma-> !factadd C++ /call offtopic C++
<pragma-> !C++
<PBot> In this channel, C++ is off-topic.
<!-- -->
<pragma-> !factadd book /me points accusingly at $args, "Where is your book?"
<pragma-> !book newbie
@ -475,6 +464,18 @@ Usage: `factalias [channel] <keyword> <command>`
<pragma-> !rafb runtime
* PBot points accusingly at runtime, "Where is your book?"
<!-- -->
<pragma-> !factadd offtopic /say In this channel, $args is off-topic.
<pragma-> !offtopic C++
<PBot> In this channel, C++ is off-topic.
<pragma-> !factadd C++ /call offtopic C++
<pragma-> !C++
<PBot> In this channel, C++ is off-topic.
## Displaying factoids
To view or trigger a factoid, one merely issues its keyword as a command.