mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
README.md: improvements to Function section
This commit is contained in:
parent
b91784dd9a
commit
1c2f1daef1
11
README.md
11
README.md
@ -272,19 +272,18 @@ Functions are commands that accept input, manipulate it and then output the resu
|
|||||||
useful with [piping](#piping) or [command substituting](#substitution).
|
useful with [piping](#piping) or [command substituting](#substitution).
|
||||||
|
|
||||||
For example, the `uri_escape` function demonstrated in the [Substitutions](#substitutions) section earlier
|
For example, the `uri_escape` function demonstrated in the [Substitutions](#substitutions) section earlier
|
||||||
makes text safe for use in a URL. We also saw the `sed` and `uc` functions demonstrated in [Piping](#piping).
|
makes text safe for use in a URL.
|
||||||
|
|
||||||
<pragma-> uri_escape thing's & words
|
<pragma-> uri_escape thing's & words
|
||||||
<PBot> thing%27s%20%26%20words
|
<PBot> thing%27s%20%26%20words
|
||||||
|
|
||||||
As demonstrated previously, the `sed` function replaces text using a substitution regex. The `uc` function
|
We also saw the `sed` and `uc` functions demonstrated in [Piping](#piping). The `sed` function
|
||||||
uppercases the text.
|
replaces text using a substitution regex. The `uc` function uppercases the text.
|
||||||
|
|
||||||
<pragma-> echo Hello world! | {sed s/world/universe/} | {uc}
|
<pragma-> echo Hello world! | {sed s/world/universe/} | {uc}
|
||||||
<PBot> HELLO UNIVERSE!
|
<PBot> HELLO UNIVERSE!
|
||||||
|
|
||||||
Here's a short list of the Functions that come with PBot. Additional Functions can easily be added
|
Here's a short list of the Functions that come with PBot.
|
||||||
by making a very simple PBot Plugin.
|
|
||||||
|
|
||||||
Name | Description
|
Name | Description
|
||||||
--- | ---
|
--- | ---
|
||||||
@ -297,6 +296,8 @@ Name | Description
|
|||||||
`uc` | Uppercases all characters.
|
`uc` | Uppercases all characters.
|
||||||
`lc` | Lowercases all characters.
|
`lc` | Lowercases all characters.
|
||||||
|
|
||||||
|
Additional Functions can easily be added by making a very simple PBot Plugin.
|
||||||
|
|
||||||
For more information, see the [Functions documentation](doc/Functions.md).
|
For more information, see the [Functions documentation](doc/Functions.md).
|
||||||
|
|
||||||
### Virtual machine
|
### Virtual machine
|
||||||
|
Loading…
Reference in New Issue
Block a user