3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-28 14:59:56 +01:00
Commit Graph

52 Commits

Author SHA1 Message Date
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
Pragmatic Software
9ef521309a
pbot-vm: update documentation about how to start PBot VM after reboot 2024-04-10 13:09:58 -07:00
Pragmatic Software
920a4f9712
doc/VirtualMachine.md: Vagrant is no longer experimental 2024-04-10 01:39:21 -07:00
Pragmatic Software
17b69f04ff
pbot-vm: massive refactor
* replace heartbeat with health-check
  * instead of steady stream of newlines every 5s, now awaits input
    and responds with `vmstat` output

* more reliably use host/config/vm-exec.json to get libvirt domain name
  for snapshot-revert, server address, serial ports, vagrant setting, etc

* use iptables/nftables to disable networking
  * added guest/bin/disable-network-[iptables,nftables]
  * added guest/bin/enable-network-[iptables,nftables]

* replace ugly ___OUTPUT___ texts in sh, bash, ksh, zsh languages

* documentation updates and tweaks
2024-04-10 01:21:18 -07:00
Pragmatic Software
a3ab27dbac
pbot-vm: documentation tweaks 2024-04-04 12:23:45 -07:00
Pragmatic Software
38a0b8705f doc/Commands: add example of nesting pipes and substitutions 2023-05-20 09:39:49 -07:00
Pragmatic Software
d75cf1d0ad Update docs 2023-05-07 13:22:37 -07:00
Pragmatic Software
178deadb35 Update docs for the c99/c11/c23 commands 2022-12-06 13:00:03 -08:00
Pragmatic Software
3cfedcf3b8 Rename compiler_vm to pbot-vm and other misc applet updates 2022-02-14 16:33:29 -08:00
Pragmatic Software
e217fb15d5 doc/VirtualMachine.md: simplify reboot procedure 2022-02-10 16:54:55 -08:00
Pragmatic Software
9dff3bed47 Polish doc/VirtualMachine.md a bit 2022-01-23 08:40:19 -08:00
Pragmatic Software
33e13fd993 Start refactoring virtual machine (1/3)
This is expected to take three commits to complete. This first initial
commit does the following:

- Begin initial rough-draft of doc/VirtualMachine.md
- Begin initial refactoring of scripts

The next commit will polish up the initial rough-draft and refactoring.

The final commit will quality-check everything and fix anything overlooked.
2022-01-23 07:49:23 -08:00
Pragmatic Software
3d97dc2c33 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
2021-11-19 18:05:50 -08:00
Pragmatic Software
f2b7436f58 Doc: minor edits 2021-09-14 22:01:13 -07:00
Pragmatic Software
4bb7a3ade6 Document nicklist, banlist, checkban, list commands 2021-09-14 21:57:24 -07:00
Pragmatic Software
6c273d263c Doc: remove trailing "command" text from various headings 2021-09-14 21:30:44 -07:00
Pragmatic Software
44e1506f28 Doc: very minor edits 2021-09-14 21:23:01 -07:00
Pragmatic Software
5a477709b5 Document id and recall; misc improvements 2021-09-14 21:13:23 -07:00
Pragmatic Software
ce2224c380 Document aka commands 2021-09-06 12:45:02 -07:00
Pragmatic Software
80eb37f14c doc: Update QuickStart with detailed information about installing Perl and CPAN modules 2021-07-14 18:33:35 -07:00
Pragmatic Software
1c1088ce48 Update doc/README.md 2021-06-12 13:54:03 -07:00
Pragmatic Software
58437de885 Minor edits to documentation 2020-09-22 14:05:25 -07:00
Pragmatic Software
74809cc8e6 Update documentation 2020-07-23 14:37:04 -07:00
Pragmatic Software
7a1f79ce0a doc: Fix link 2020-07-23 12:26:28 -07:00
Pragmatic Software
26ce65ab85 Update documentation 2020-07-23 12:18:53 -07:00
Pragmatic Software
6c7a7bc808 doc: document selectors 2020-06-02 23:44:02 -07:00
Pragmatic Software
bcee2e8460 doc/Commands.md: add and improve sections about command syntax 2020-05-31 18:12:59 -07:00
Pragmatic Software
72807b9ea7 doc: improvements 2020-03-08 17:59:05 -07:00
Pragmatic Software
b5f6ccca1e doc: add eventqueue 2020-03-08 16:33:01 -07:00
Pragmatic Software
2895d9a7b2 doc/README.md: update TOC 2020-03-08 16:26:18 -07:00
Pragmatic Software
72d2ac5b04 doc/README.md: update TOC 2020-02-16 12:22:14 -08:00
Pragmatic Software
7dd0196c54 doc: whitelist is no longer a command 2020-02-14 23:39:14 -08:00
Pragmatic Software
614d45a938 doc: improvements 2020-02-14 23:35:34 -08:00
Pragmatic Software
f927a1b024 doc/README.md: update TOC 2020-02-14 23:06:24 -08:00
Pragmatic Software
1b64cfaf25 doc/README.md: update TOC 2020-02-10 00:29:50 -08:00
Pragmatic Software
f3559a3198 doc: add "cap whohas" 2020-02-06 11:22:47 -08:00
Pragmatic Software
e68df00704 doc/README.md: update TOC 2020-02-04 02:32:29 -08:00
Pragmatic Software
1d68cc7ae9 doc/README.md: update TOC 2020-02-04 02:30:26 -08:00
Pragmatic Software
ed3630cbe3 doc/README.md: simplify TOC 2020-01-27 23:44:21 -08:00
Pragmatic Software
ecd36676a2 doc/README.md: update TOC 2020-01-27 20:18:22 -08:00
Pragmatic Software
6fbacdd49b doc/README.md: update TOC 2020-01-27 20:05:31 -08:00
Pragmatic Software
af16cbb167 README.md: update TOC 2020-01-27 19:53:48 -08:00
Pragmatic Software
e823899d47 doc/README.md: update DOC 2020-01-26 20:15:45 -08:00
Pragmatic Software
abdb5adba1 README.md: update TOC 2020-01-26 19:52:37 -08:00
Pragmatic Software
16596221ae doc/README.md: update TOC 2020-01-22 22:47:05 -08:00
Pragmatic Software
d9f45be003 doc/README.md: update TOC 2020-01-22 22:25:09 -08:00
Pragmatic Software
2cc4c0eab9 doc/README.md: update TOC 2020-01-22 19:29:44 -08:00
Pragmatic Software
92b0c3ba99 doc/README.md: update TOC 2020-01-21 18:39:11 -08:00
Pragmatic Software
487fdd7799 doc/README.md: rearrange sections 2020-01-12 22:25:26 -08:00
Pragmatic Software
24450aa4af doc/README.md: remove section 2020-01-12 15:08:37 -08:00