README.md: improve $variable interpolation section

This commit is contained in:
Pragmatic Software 2020-01-11 19:42:31 -08:00
parent 4d4da9256f
commit ca143eba01
1 changed files with 28 additions and 22 deletions

View File

@ -3,27 +3,27 @@ PBot
PBot is a versatile IRC Bot written in Perl PBot is a versatile IRC Bot written in Perl
<!-- md-toc-begin --> <!-- md-toc-begin -->
* [Installation / Quick Start](#installation--quick-start) * [Installation / Quick Start](#installation--quick-start)
* [Features](#features) * [Features](#features)
* [Commands](#commands) * [Commands](#commands)
* [Plugins](#plugins) * [Plugins](#plugins)
* [Factoids](#factoids) * [Factoids](#factoids)
* [Code Factoids](#code-factoids) * [Code Factoids](#code-factoids)
* [Modules](#modules) * [Modules](#modules)
* [Virtual machine](#virtual-machine) * [Virtual machine](#virtual-machine)
* [Useful IRC command improvements](#useful-irc-command-improvements) * [Useful IRC command improvements](#useful-irc-command-improvements)
* [Channel management](#channel-management) * [Channel management](#channel-management)
* [Admin management](#admin-management) * [Admin management](#admin-management)
* [Easy configuration](#easy-configuration) * [Easy configuration](#easy-configuration)
* [Advanced interpreter](#advanced-interpreter) * [Advanced interpreter](#advanced-interpreter)
* [piping](#piping) * [piping](#piping)
* [command substitution](#command-substitution) * [command substitution](#command-substitution)
* [command splitting](#command-splitting) * [command splitting](#command-splitting)
* [$variable interpolation](#variable-interpolation) * [advanced $variable interpolation](#advanced-variable-interpolation)
* [inline commands](#inline-commands) * [inline commands](#inline-commands)
* [Documentation](#documentation) * [Documentation](#documentation)
* [Support](#support) * [Support](#support)
* [License](#license) * [License](#license)
<!-- md-toc-end --> <!-- md-toc-end -->
Installation / Quick Start Installation / Quick Start
@ -291,7 +291,7 @@ You can execute multiple commands sequentially as one command.
<pragma-> !echo Test! ;;; me smiles. ;;; version <pragma-> !echo Test! ;;; me smiles. ;;; version
<PBot> Test! * PBot smiles. PBot version 2696 2020-01-04 <PBot> Test! * PBot smiles. PBot version 2696 2020-01-04
#### $variable interpolation #### advanced $variable interpolation
You can use factoids as variables and interpolate them within commands. You can use factoids as variables and interpolate them within commands.
@ -300,6 +300,12 @@ You can use factoids as variables and interpolate them within commands.
<pragma-> !echo greeting is $greeting <pragma-> !echo greeting is $greeting
<PBot> greeting is Hello, world <PBot> greeting is Hello, world
PBot `$variable` interpolation supports [expansion modifiers](doc/Factoids#expansion-modifiers), which can be chained to
combine their effects.
<pragma-> !echo $greeting:uc
<PBot> HELLO, WORLD
#### inline commands #### inline commands
You can invoke up to three commands inlined within a message. If the message You can invoke up to three commands inlined within a message. If the message