3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-28 06:49:26 +01:00

Rename "modules" to "applets"

"Applet" is a much better name for the external command-line
scripts and programs that can be loaded as PBot commands. They
will no longer be confused with Perl modules.

https://en.wikipedia.org/wiki/Applet
This commit is contained in:
Pragmatic Software 2021-11-19 18:05:50 -08:00
parent dd250ccf83
commit 3d97dc2c33
184 changed files with 2085 additions and 258 deletions

View File

@ -20,7 +20,7 @@ PBot is a pragmatic IRCv3 Bot written in Perl
* [Factoids](#factoids) * [Factoids](#factoids)
* [Code factoids](#code-factoids) * [Code factoids](#code-factoids)
* [Plugins](#plugins) * [Plugins](#plugins)
* [Modules](#modules) * [Applets](#applets)
* [Functions](#functions) * [Functions](#functions)
* [Scripting interface](#scripting-interface) * [Scripting interface](#scripting-interface)
* [Virtual machine to safely execute user-submitted code](#virtual-machine-to-safely-execute-user-submitted-code) * [Virtual machine to safely execute user-submitted code](#virtual-machine-to-safely-execute-user-submitted-code)
@ -243,8 +243,8 @@ Plugin | Description
[Connect4](lib/PBot/Plugin/Connect4.pm) | The classic Connect-4 game. [Connect4](lib/PBot/Plugin/Connect4.pm) | The classic Connect-4 game.
[Spinach](lib/PBot/Plugin/Spinach.pm) | An advanced multiplayer Trivia game engine with a twist! A question is shown. Everybody privately submits a false answer. All false answers and the true answer is shown. Everybody tries to guess the true answer. Points are gained when people pick your false answer! [Spinach](lib/PBot/Plugin/Spinach.pm) | An advanced multiplayer Trivia game engine with a twist! A question is shown. Everybody privately submits a false answer. All false answers and the true answer is shown. Everybody tries to guess the true answer. Points are gained when people pick your false answer!
#### Modules #### Applets
Modules are external command-line executable programs and scripts that can be Applets are external command-line executable programs and scripts that can be
loaded as PBot commands. loaded as PBot commands.
Suppose you have the [Qalculate!](https://qalculate.github.io/) command-line Suppose you have the [Qalculate!](https://qalculate.github.io/) command-line
@ -254,7 +254,7 @@ shell script containing:
#!/bin/sh #!/bin/sh
qalc "$*" qalc "$*"
And let's call it `qalc.sh` and put it in PBot's `modules/` directory. And let's call it `qalc.sh` and put it in PBot's `applets/` directory.
Then you can load it with the [`load`](doc/Admin.md#load) command. Then you can load it with the [`load`](doc/Admin.md#load) command.
@ -265,20 +265,20 @@ Now you have a [Qalculate!](https://qalculate.github.io/) calculator in PBot!
<pragma-> !qalc 2 * 2 <pragma-> !qalc 2 * 2
<PBot> 2 * 2 = 4 <PBot> 2 * 2 = 4
These are just some of the modules PBot comes with; there are several more: These are just some of the applets PBot comes with; there are several more:
Module | Description Applet | Description
--- | --- --- | ---
[C-to-English translator](modules/c2english) | Translates C code to natural English sentences. [C-to-English translator](applets/c2english) | Translates C code to natural English sentences.
[C precedence analyzer](modules/paren) | Adds parentheses to C code to demonstrate precedence. [C precedence analyzer](applets/paren) | Adds parentheses to C code to demonstrate precedence.
[C Jeopardy! game](modules/cjeopardy) | C programming trivia game based on the Jeopardy! TV game show. [C Jeopardy! game](applets/cjeopardy) | C programming trivia game based on the Jeopardy! TV game show.
[C Standard citations](modules/c11std.pl) | Cite specified sections/paragraphs from the C standard. [C Standard citations](applets/c11std.pl) | Cite specified sections/paragraphs from the C standard.
[Virtual machine](modules/compiler_vm) | Executes arbitrary code and commands within a virtual machine. [Virtual machine](applets/compiler_vm) | Executes arbitrary code and commands within a virtual machine.
[dict.org Dictionary](modules/dict.org.pl) | Interface to dict.org for definitions, translations, acronyms, etc. [dict.org Dictionary](applets/dict.org.pl) | Interface to dict.org for definitions, translations, acronyms, etc.
[Urban Dictionary](modules/urban) | Search Urban Dictionary for definitions. [Urban Dictionary](applets/urban) | Search Urban Dictionary for definitions.
[Manpages](modules/man.pl) | Display a concise formatting of manual pages (designed for C functions) [Manpages](applets/man.pl) | Display a concise formatting of manual pages (designed for C functions)
For more information, see the [Modules documentation](doc/Modules.md). For more information, see the [Applets documentation](doc/Applets.md).
#### Functions #### Functions
Functions are commands that accept input, manipulate it and then output the result. They are extremely Functions are commands that accept input, manipulate it and then output the result. They are extremely
@ -355,7 +355,7 @@ It can display the value of the most recent statement if there is no program out
<pragma-> !cc sizeof (int) <pragma-> !cc sizeof (int)
<PBot> no output: sizeof(int) = 4 <PBot> no output: sizeof(int) = 4
For more information about the C programming language plugin, see [the `cc` command in the Modules documentation.](doc/Modules.md#cc) For more information about the C programming language plugin, see [the `cc` command in the Applets documentation.](doc/Applets.md#cc)
For more information about the virtual machine, see the [Virtual Machine documentation.](doc/VirtualMachine.md) For more information about the virtual machine, see the [Virtual Machine documentation.](doc/VirtualMachine.md)

Some files were not shown because too many files have changed in this diff Show More