MiniSed module¶
Description¶
This module provides basic substitutions in a sed(1)-like fashion.
Configuration¶
Example¶
In this example, we simply make this module available on all networks and channels the bot is connected to.
<?xml version="1.0"?>
<configuration
xmlns="http://localhost/Erebot/"
version="0.20"
language="fr-FR"
timezone="Europe/Paris">
<modules>
<!-- Other modules ignored for clarity. -->
<module name="\Erebot\Module\MiniSed"/>
</modules>
</configuration>
Usage¶
Provided commands¶
This module provides the following commands:
Command | Description |
---|---|
s/pattern/replacement string/ or s@pattern@replacement string@, etc. | Search and replace pattern with replacement string in the last sentence written in the current channel. This is a very basic implementation of sed’s s/// command. Flags cannot be used with this implementation. |