3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-28 14:59:56 +01:00
pbot/doc
Pragmatic Software 001f2024c4
Factoids: add default value modifier
Uses POSIX shell parameter expansion syntax.

    <pragma-> !factadd cookie /me gives a cookie to ${args:-nobody. What a shame}!
       <PBot> cookie added to the global channel.

    <pragma-> !cookie Bob
            * PBot gives a cookie to Bob!

    <pragma-> !cookie
            * PBot gives a cookie to nobody. What a shame!

    <pragma-> !factadd sum /call calc $arg[0]:-1 + $arg[1]:-2
       <PBot> sum added to the global channel.

    <pragma-> !sum
       <PBot> 1 + 2 = 3

    <pragma-> !sum 3
       <PBot> 3 + 2 = 5

    <pragma-> !sum 4 6
       <PBot> 4 + 6 = 10
2024-11-27 12:17:45 -08:00
..
Plugins doc/Plugins/Plang.md: Slightly simplify karma example 2020-10-01 18:01:05 -07:00
Admin.md Replace preserve_whitespace metadata with condense-whitespace 2024-11-04 00:25:36 -08:00
AntiAbuse.md docs/AntiAbuse: update automatic join-flood enforcement section 2023-05-07 15:04:42 -07:00
Applets.md Update docs for the c99/c11/c23 commands 2022-12-06 13:00:03 -08:00
Commands.md Update doc/Commands.md and factoids 2024-07-18 16:11:05 -07:00
Factoids.md Factoids: add default value modifier 2024-11-27 12:17:45 -08:00
FAQ.md Factoids: add default value modifier 2024-11-27 12:17:45 -08:00
Functions.md Document id and recall; misc improvements 2021-09-14 21:13:23 -07:00
git-md-toc Update docs 2023-05-07 13:22:37 -07:00
makereadmetoc Update docs 2023-05-07 13:22:37 -07:00
Plugins.md Document ~/.pbot/PBot/Plugin for third-party plugins 2021-07-14 19:57:55 -07:00
QuickStart.md doc/QuickStart.md: minor tweak to login section 2024-06-23 12:27:56 -07:00
README.md Factoids: add default value modifier 2024-11-27 12:17:45 -08:00
Registry.md doc/Registry: add antiflood.join_flood_channel item to table 2023-05-07 14:35:24 -07:00
updatetocs Update docs 2023-05-07 13:22:37 -07:00
VirtualMachine.md doc/VirtualMachine.md: minor tweak to VSOCK section 2024-05-26 17:46:47 -07:00

PBot Documentation

Table of Contents