3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-23 03:02:47 +01:00
Commit Graph

27 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
9ebc77f4da
Replace preserve_whitespace metadata with condense-whitespace
PBot now preserves whitespace by default. The `preserve_whitespace`
metadata field is now redundant. It has now been replaced with
`condense-whitespace`, which when set to a true value will collapse
adjacent whitespace to a single space.
2024-11-04 00:25:36 -08:00
Pragmatic Software
6722fd7f8d
Store user passwords as salted hash digests
This was way overdue. User passwords are no longer stored as cleartext.

When PBot is restarted after applying this commit, all stored passwords will
be converted to salted hash digests.

The `useradd`, `userset` and `my` commands will now hash passwords.

Why did it take me so long to finally get around to hashing passwords
properly, you might ask. The reason why this wasn't done sooner is because
all of my users used hostmask-based `autologin`. The passwords that PBot
randomly generated were ignored and never used.

I do regret that it took me so long to get around to this, for those of you
who might be using custom passwords instead of hostmask-based `autologin`.
2024-06-22 22:38:15 -07:00
Pragmatic Software
a14f810a78 Update docs 2023-05-07 13:26:31 -07:00
Pragmatic Software
d75cf1d0ad Update docs 2023-05-07 13:22:37 -07: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
eb40d30289 doc/FAQ.md: minor fixes 2021-07-15 17:24:42 -07:00
Pragmatic Software
9da9ba648a doc/FAQ.md: minor fixes 2021-07-15 17:16:03 -07:00
Pragmatic Software
8adf4ad5a3 doc/FAQ.md: minor fixes 2021-07-15 17:09:42 -07:00
Pragmatic Software
468eedca2d doc/FAQ.md: minor fixes 2021-07-15 17:06:18 -07:00
Pragmatic Software
343b065461 doc/FAQ.md: minor fixes 2021-07-15 17:01:38 -07:00
Pragmatic Software
9a9bbdb718 doc/FAQ.md: minor fixes 2021-07-15 16:42:06 -07:00
Pragmatic Software
2cab3192bf doc/FAQ.md: minor fixes 2021-07-15 16:38:26 -07:00
Pragmatic Software
33f8405890 doc/FAQ.md: increase heading size 2021-07-15 16:35:17 -07:00
Pragmatic Software
50618f6c74 doc/FAQ.md: add question about updating to new version 2021-07-15 16:33:37 -07:00
Pragmatic Software
e058f2d869 doc/FAQ.md: fix typo 2021-07-15 15:55:23 -07:00
Pragmatic Software
368586719a doc/FAQ.md: fix TOC 2021-07-15 15:54:06 -07:00
Pragmatic Software
08d622c257 doc/FAQ.md: add question involving preserve_whitespace 2021-07-15 15:53:24 -07:00
Pragmatic Software
f4ba0500af doc: Minor corrections 2021-07-15 09:20:31 -07:00
Pragmatic Software
474e18dd94 Update some documentation 2021-07-15 09:13:52 -07:00
Pragmatic Software
8d9e3da249 Major refactor of Users 2020-04-23 16:19:36 -07:00
Pragmatic Software
ce53bc4ae4 doc/FAQ.md: add missing [channel] optional argument 2020-02-10 00:34:14 -08:00
Pragmatic Software
af2cbd31dc doc/FAQ.md: add usage examples for whitelisting users 2020-02-10 00:32:50 -08:00
Pragmatic Software
0ee5762716 doc/FAQ.md: add whitelist question 2020-02-10 00:28:59 -08:00
Pragmatic Software
2989a31b6a doc/FAQ.md: try a level 3 heading for questions 2020-01-27 23:49:13 -08:00
Pragmatic Software
0820ee2160 doc/FAQ.md: improvements 2020-01-27 23:47:55 -08:00
Pragmatic Software
d6470ccb1d Add doc/FAQ.md 2020-01-27 23:40:53 -08:00