3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-17 09:29:30 +01:00
pbot/data
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
..
factlog Add individual change-logs for factoid triggers 2015-12-13 13:58:01 -08:00
log Logfile now lives in data_dir 2019-12-29 10:44:05 -08:00
spinach data/spinach/metadata: remove empty include filter 2020-01-21 20:20:38 -08:00
wordle Plugin/Wordle: add missing Italian words and vowel; fix German translation 2024-09-22 17:05:46 -07:00
ban-exemptions data: add name to JSON metadata 2020-04-24 23:09:57 -07:00
banlist Finalize BanList refactor; add updater 2020-04-28 22:36:13 -07:00
blacklist Move config/* to data/ 2019-12-21 18:55:03 -08:00
capabilities data/capabilities: fix metadata 2021-02-07 14:38:57 -08:00
channels Multiple bugfixes 2024-04-07 20:55:04 -07:00
commands data/commands: add preserve_whitespace to wordle 2024-03-16 16:31:29 -07:00
factoids.sqlite3 Update factoids 2024-10-30 19:18:18 -07:00
ignorelist data: add name to JSON metadata 2020-04-24 23:09:57 -07:00
last_update Rename "modules" to "applets" 2021-11-19 18:05:50 -08:00
plugin_autoload Remove TypoSub from plugin_autoload 2024-09-23 11:27:04 -07:00
quietlist Finalize BanList refactor; add updater 2020-04-28 22:36:13 -07:00
registry Multiple bugfixes 2024-04-07 20:55:04 -07:00
spam_keywords data: add name to JSON metadata 2020-04-24 23:09:57 -07:00
users data: add name to JSON metadata 2020-04-24 23:09:57 -07:00
wordmorph.db WordMorph: merge SCOWLv3 and NWL2020 2024-01-10 17:10:49 -08:00