mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-22 11:59:43 +01:00
doc/Factoids.md: minor improvement
This commit is contained in:
parent
2167723190
commit
eb0ac10cdc
@ -449,22 +449,11 @@ To remove a factoid, use the `factrem` or `forget` command.
|
|||||||
Usage: `factrem [channel] <keyword>` `forget [channel] <keyword>`
|
Usage: `factrem [channel] <keyword>` `forget [channel] <keyword>`
|
||||||
|
|
||||||
### factalias
|
### 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>`
|
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-> !factadd book /me points accusingly at $args, "Where is your book?"
|
||||||
|
|
||||||
<pragma-> !book newbie
|
<pragma-> !book newbie
|
||||||
@ -475,6 +464,18 @@ Usage: `factalias [channel] <keyword> <command>`
|
|||||||
<pragma-> !rafb runtime
|
<pragma-> !rafb runtime
|
||||||
* PBot points accusingly at runtime, "Where is your book?"
|
* 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
|
## Displaying factoids
|
||||||
To view or trigger a factoid, one merely issues its keyword as a command.
|
To view or trigger a factoid, one merely issues its keyword as a command.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user