3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-16 17:09:33 +01:00
Commit Graph

298 Commits

Author SHA1 Message Date
Pragmatic Software
8e2b0df17c
Update factoids 2024-11-10 09:53:45 -08:00
Pragmatic Software
10374b47c9
Update factoids 2024-11-05 02:30:43 -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
41c5182208
Update factoids 2024-11-03 19:27:05 -08:00
Pragmatic Software
e7d3a543c4
Update factoids
Amazing factoids being created in #wordle by JAA and emanuele6.

jaa-guesses2wordles: /call wordles &{jaasolve-state2pattern &{jaa-guesses2state '&{wordle guesses | {stripircformatting}}' $arg[-1]}} &{wordle info | {sed s/ \(.*$//} | {sed s/^.* //}}

jaa-guesses2state: /code sh shopt -s extglob; declare -A _m=(\* G \? Y \  B);_w=" ${1//ẞ/ß}" _w=${_w,,} _o=; while [[ "${_w}" ]]; do _g= _r= _w=${_w:1}; while [[ "${_w}" == ' '?[\ ?*]* ]]; do
_g+=${_w:1:1} _r+=${_m["${_w:2:1}"]} _w=${_w:3}; done; _o=$_o${_o:+.}$_g.$_r; done; _o=${_o%.+([^.]).+(G)}; for ((_i = ${2:-0}; _i > 0; --_i)); do _o=${_o%.+([^.]).+([GYB])}; done; printf %s\\n "$_o"

wsg: /call call &{func grep wordle wordle &{wordle start &{clength $arg[0]} $arg[1]}} guess $arg[0]

clength: /code sh printf %s "${#1}"

rspray: /call func sed s/Le.*?:.*?@//g Le:&{wordle start}@&{wordle guess &{rw}}@&{wordle guess &{rw}}@&{wordle guess &{rw}}@&{wordle guess &{rw}}

rw: /code sh _len="${1:-5}" ; _list="${2:-american}" ; grep -P ^.{$_len}$ /usr/share/dict/$_list | shuf -n 1

Also megaspray, megasolve, jaasolve, wsgl, and more!
2024-10-30 19:18:18 -07:00
Pragmatic Software
4286c459d1
Update factoids 2024-10-23 12:15:59 -07:00
Pragmatic Software
876d5a88bf
Update factoids 2024-10-15 19:55:01 -07:00
Pragmatic Software
3a63448753
Update factoids 2024-10-04 22:00:35 -07:00
Pragmatic Software
50ca5b57f6
Remove TypoSub from plugin_autoload 2024-09-23 11:27:04 -07:00
Pragmatic Software
fcaa2d3044
Plugin/Wordle: add missing Italian words and vowel; fix German translation 2024-09-22 17:05:46 -07:00
Pragmatic Software
635f2c5a00
Update factoids 2024-09-19 13:57:20 -07:00
Pragmatic Software
2cce930d47
Update factoids (set keep-escapes 1 to preserve backslashes on some commands) 2024-08-19 11:38:07 -07:00
Pragmatic Software
dd4be2184c
Add Plugins/AntiHello to warn about stand-alone greetings in large channels 2024-08-07 14:48:05 -07:00
Pragmatic Software
1e668a6012
Update doc/Commands.md and factoids 2024-07-18 16:11:05 -07:00
Pragmatic Software
5988d3d11d
Update factoids 2024-07-15 18:54:14 -07:00
Pragmatic Software
88518a21df
Update factoids 2024-07-11 13:54:40 -07:00
Pragmatic Software
04209e4b7e
Interpreter: restore preserve_escapes in make_args() to fix sed
Update factoids
2024-06-03 09:07:53 -07:00
Pragmatic Software
80f9ea1acd
Interpreter: escaped spaces behave better 2024-05-26 17:44:59 -07:00
Pragmatic Software
c6e1da1706
Plugin/Wordle: preserve correct letters in list; add american-uncommon 2024-05-16 13:33:10 -07:00
Pragmatic Software
5d3f188a09
Multiple bugfixes
* obtain bot nick from connection details instead of registry where appropriate

* irc.random_nick works again

* record own hostmask when connecting

* fix web-paste truncation by subtracting length of own hostmask from message length

* set irc.max_msg_len back to 510

* updated IRC numeric 378 to whoishost

* add sprunge.us to WebPaste
2024-04-07 20:55:04 -07:00
Pragmatic Software
94b7706358
Plugin/Wordle: add Urban Dictionary words (filtered to >100 thumbs-up, no excessive consecutive letters, etc) 2024-04-07 17:20:59 -07:00
Pragmatic Software
5c185486e8
Plugin/Wordle: removed unidecode normalization; added Finnish 2024-03-17 21:08:50 -07:00
Pragmatic Software
51fb92bc39
Plugin/Wordle: add Polish wordlist 2024-03-17 18:39:09 -07:00
Pragmatic Software
8970978444
data/wordle: update German words to modern dialect 2024-03-16 19:43:50 -07:00
Pragmatic Software
753773f06b
Plugin/Wordle: add accented words and German nouns
Accented words will be unidecoded to Latin letters so letter list remains A-Z.

German words will include proper nouns since I had no easy way to distinguish
them from regular nouns.
2024-03-16 17:29:09 -07:00
Pragmatic Software
348465b034
data/commands: add preserve_whitespace to wordle
Plugin/Wordle: remove debug message
2024-03-16 16:31:29 -07:00
Pragmatic Software
bde06990fe
Plugin/Wordle: colorize ouput and add wordlists 2024-03-16 16:14:07 -07:00
Pragmatic Software
ca7670da3d
Plugin/Wordle: add letters subcommand to display good/unknown letters 2024-03-09 15:42:59 -08:00
Pragmatic Software
cdb41e4334
WordMorph: merge SCOWLv3 and NWL2020 2024-01-10 17:10:49 -08:00
Pragmatic Software
7ef6145792 Update factoids
Added `unicode` applet command.
2023-03-23 17:18:00 -07:00
Pragmatic Software
8b8205ce12 Update factoids 2023-03-23 14:57:45 -07:00
Pragmatic Software
e908dd1640 Update factoids 2023-02-25 13:46:53 -08:00
Pragmatic Software
9f314cd365 Enable aka_debug because AKA log entries are interesting 2023-02-02 09:13:36 -08:00
Pragmatic Software
178deadb35 Update docs for the c99/c11/c23 commands 2022-12-06 13:00:03 -08:00
Pragmatic Software
adaf4e2ed3 Plugin/WordMorph: several improvements
- add 2880 variant words to wordlist
- morph generator skips words with same suffix
- default steps increased from 3 to 4
- default minimum word length increased from 4 to 5

Note that you can override default steps and word lengths via `start`.
2022-09-04 16:47:43 -07:00
Pragmatic Software
bc02854d15 Update WordMorph
- Ensure length of each step is correct
- Add WordMorph to plugin_autoload
2022-08-26 12:47:44 -07:00
Pragmatic Software
0edfee6d15 Update WordMorph 2022-08-26 00:33:41 -07:00
Pragmatic Software
d5c336c058 Add WordMorph plugin 2022-08-24 14:37:02 -07:00
Pragmatic Software
6a61de1026 Consolidate c{99,11,23}std.pl into cstd.pl 2022-08-12 12:28:58 -07:00
Pragmatic Software
9ddd38038a applets: add C23 draft (n3047) command
I really, really need to clean this mess up and combine
c99std.pl, c11std.pl and c23std.pl into one script!
2022-08-07 19:10:34 -07:00
Pragmatic Software
74380f2a72 Core: Use EXIT_SUCCESS/EXIT_FAILURE; misc clean-ups 2022-07-10 12:45:27 -07:00
Pragmatic Software
10e49bbbb6 Update factoids 2022-07-08 12:50:30 -07:00
Pragmatic Software
41b69bdfa5 Factoids: add keep-quotes metadata for applet commands 2022-06-27 19:52:38 -07:00
Pragmatic Software
164ecc45a7 Update factoids and registry 2022-02-27 17:16:48 -08:00
Pragmatic Software
619ff86a94 Rename compiler factoid to vm-client 2022-02-14 16:47:46 -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
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
4cf1e76169 Update commands and factoids 2021-10-19 21:14:52 -07:00
Pragmatic Software
31ae34e17e Remove obsolete generate_undos.pl script 2021-08-15 19:44:21 -07:00
Pragmatic Software
d1df2d325c Improve output of truncation text
Instead of "... [truncated; see http://xxx for full text.]" it more
concisely says "... <truncated; http://...>".

Increased irc.max_msg_len from a very conservative 425 to a more
generous 460. If you have very long channel names or nicknames, or if
you see things being truncated incorrectly, reduce this value.
2021-08-12 22:30:56 -07:00