mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-22 03:49:29 +01:00
doc/Modules.md: minor edit
This commit is contained in:
parent
ce53bc4ae4
commit
4327f13bef
@ -89,18 +89,15 @@ shell script containing:
|
||||
|
||||
And let's call it `qalc.sh` and put it in PBot's `modules/` directory.
|
||||
|
||||
Then you can add the `qalc` factoid:
|
||||
|
||||
!factadd global qalc qalc.sh
|
||||
|
||||
And then set its `type` to `module`:
|
||||
|
||||
!factset global qalc type module
|
||||
|
||||
Alternatively, you can simply use the [`load`](Admin.md#load) command:
|
||||
Then you can use the [`load`](Admin.md#load) command:
|
||||
|
||||
!load qalc qalc.sh
|
||||
|
||||
Note: this is equivalent to creating a factoid and setting its `type` to `module`:
|
||||
|
||||
!factadd global qalc qalc.sh
|
||||
!factset global qalc type module
|
||||
|
||||
Now you have a `qalc` calculator in PBot!
|
||||
|
||||
<pragma-> !qalc 2 * 2
|
||||
|
Loading…
Reference in New Issue
Block a user