3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-06 11:28:43 +02:00

doc/FAQ.md: add question involving preserve_whitespace

This commit is contained in:
Pragmatic Software 2021-07-15 15:53:24 -07:00
parent e83eb87724
commit 08d622c257

View File

@ -8,6 +8,7 @@ This is a work in progress. More questions coming soon!
* [How do I change the bot trigger?](#how-do-i-change-the-bot-trigger) * [How do I change the bot trigger?](#how-do-i-change-the-bot-trigger)
* [How do I whitelist a user?](#how-do-i-whitelist-a-user) * [How do I whitelist a user?](#how-do-i-whitelist-a-user)
* [How do I change how the bot outputs multi-line messages?](#how-do-i-change-how-the-bot-outputs-multi-line-messages) * [How do I change how the bot outputs multi-line messages?](#how-do-i-change-how-the-bot-outputs-multi-line-messages)
* [I made a command. It's supposed to output formatting with spaces and tabs?](#i-made-a-command-its-supposed-to-output-formatting-with-spaces-and-tabs)
<!-- md-toc-end --> <!-- md-toc-end -->
### How do I change my password? ### How do I change my password?
@ -90,3 +91,14 @@ For example:
<PBot> b <PBot> b
<PBot> c <PBot> c
<PBot> And that's all I have to say about that. See https://0x0.st/-Okb.txt for full text. <PBot> And that's all I have to say about that. See https://0x0.st/-Okb.txt for full text.
### I made a command. It's supposed to output formatting with spaces and tabs?
By default, PBot collapses adjacent whitespace in command output. This is intended to
reduce visual noise in IRC channels.
If your command is registered by a plugin, use the [`cmdset`](Admin.md#cmsdset) command
to set the `preserve_whitespace` [command metadata](Admin.md#command-metadata-list) to
control this behavior.
If your command is a command-line module, use the [`factset`](Factoids.md#factset) command
to set the `preserve_whitespace` [factoid metadata](Factoids.md#factoid-metadata-list) instead.