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

36 Commits

Author SHA1 Message Date
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
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
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
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
178deadb35 Update docs for the c99/c11/c23 commands 2022-12-06 13:00:03 -08: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
547c4e7135 Update factoids 2021-07-19 17:09:57 -07:00
Pragmatic Software
3fef310980 Update factoids 2021-07-10 02:34:17 -07:00
Pragmatic Software
9e451743ea Update factoids 2021-07-06 13:12:38 -07:00
Pragmatic Software
b9b1259e93 Update factoids 2021-05-23 17:57:15 -07:00
Pragmatic Software
cbc10751e0 Update factoids 2021-05-23 16:12:28 -07:00
Pragmatic Software
f6c870539d Update factoids 2021-02-07 15:07:51 -08:00
Pragmatic Software
cc1dad6c78 Update factoids 2020-07-19 16:39:45 -07:00
Pragmatic Software
136e220c9a Update factoids 2020-05-30 13:20:05 -07:00
Pragmatic Software
1ba71c4970 Update factoids 2020-05-04 18:29:32 -07:00
Pragmatic Software
8f983bcbda Add grep Function 2020-05-02 02:34:32 -07:00
Pragmatic Software
e24835ea95 Switch over to SQLite backend for Factoids 2020-02-26 02:29:02 -08:00