3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-31 17:19:30 +01:00
Commit Graph

293 Commits

Author SHA1 Message Date
Pragmatic Software
be06b8e241 Factoids: revert $var expansion relocation 2020-07-06 20:56:06 -07:00
Pragmatic Software
38b9853aad Factoids: $var expansion was happening too early in the pipeline 2020-06-27 23:10:11 -07:00
Pragmatic Software
bbbfcbb25a Factoids: minor formatting clean-up 2020-06-20 21:37:21 -07:00
Pragmatic Software
2efd91d382 Factoids: do not prepend $ref_from if pipe or subcmd exists; misc clean-ups 2020-06-20 20:55:22 -07:00
Pragmatic Software
2d47802cff Factoids: allow empty %() items without needing quotes 2020-06-19 19:58:52 -07:00
Pragmatic Software
7e2caa58af Factoids: add some error-checking for expansion modifiers 2020-06-19 13:12:50 -07:00
Pragmatic Software
bb6d9a5919 Factoids: disallow whitespace around ":" in modifiers 2020-06-19 12:07:01 -07:00
Pragmatic Software
5495a6b406 Factoids: weights can now be fractional 2020-06-19 09:24:38 -07:00
Pragmatic Software
6ea523f608 Factoids: fix off-by-one in weighted selection 2020-06-17 11:36:42 -07:00
Pragmatic Software
afcb4a0f98 Factoids: unescape certain symbols after expansion 2020-06-17 04:11:18 -07:00
Pragmatic Software
13cb0f9dc6 Factoids: sorting unnecessary for weighted selection 2020-06-17 02:24:46 -07:00
Pragmatic Software
a2c918c94e Factoids: remove unnecessary statement 2020-06-16 21:29:47 -07:00
Pragmatic Software
914e844f11 Factoids: add weighted list selection; factadd list a:weight(1) b:weight(2) 2020-06-16 21:26:09 -07:00
Pragmatic Software
0b94ada897 Factoids: fix issue where pick_unique() could repeat a selection 2020-06-14 22:34:24 -07:00
Pragmatic Software
b3ca5e69cd Factoids: expand_factoid_vars(): special-case Perl's $a and $b, etc 2020-06-12 18:57:01 -07:00
Pragmatic Software
eb9b18cf37 Factoids: fix potential infinite recursion in $var expansion 2020-06-12 12:05:25 -07:00
Pragmatic Software
9b0696b898 Factoids: minor style clean-up 2020-06-12 01:53:25 -07:00
Pragmatic Software
1d98efe9b0 Factoids: expand_factoid_vars(): support multi-line text 2020-06-12 01:37:55 -07:00
Pragmatic Software
ead2d5d55f Factoids: correct recursive $var expansion 2020-06-12 00:02:32 -07:00
Pragmatic Software
90b23d5391 Factoids: Fix typo and edge case 2020-06-11 23:34:53 -07:00
Pragmatic Software
d81482a5c5 Factoids: restore select_indefinite_article to $variable expansion 2020-06-11 23:03:14 -07:00
Pragmatic Software
78de682320 Factoids: refactor and improve $variable parsing and replacement 2020-06-11 22:51:40 -07:00
Pragmatic Software
af7573a20a Factoids: Selectors now fix leading indefinite articles; i.e. a %(orange) -> an orange 2020-06-10 23:06:08 -07:00
Pragmatic Software
5676d6f13b Factoids: improve nested selectors 2020-06-07 15:22:48 -07:00
Pragmatic Software
ef072602fa Factoids: test enabled for definedness 2020-06-07 00:12:09 -07:00
Pragmatic Software
a40b443c66 Factoids: improve nested Selectors such that %(%(f|b)oo):pick_unique(2) -> foo boo 2020-06-07 00:07:52 -07:00
Pragmatic Software
03fb043ec6 Factoids: significantly improve expansion modifier parsing 2020-06-04 02:28:11 -07:00
Pragmatic Software
20febe7ccd Factoids: add quick-and-dirty early version of :join() modifier with many broken edge cases 2020-06-03 20:47:18 -07:00
Pragmatic Software
128c3014c7 Factoids: Selectors can now be nested within each other 2020-06-03 20:11:41 -07:00
Pragmatic Software
5e574624b4 Factoids: Remove debug statement 2020-06-02 22:41:19 -07:00
Pragmatic Software
a3a7319497 Factoids: add %(a|b|c) syntax to select a random item 2020-06-02 22:25:09 -07:00
Pragmatic Software
158b13006c Factoids: minor whitespace reformatting 2020-05-31 15:32:05 -07:00
Pragmatic Software
945b81f12d Factoids: properly set range for pick $variable modifier 2020-05-30 02:47:08 -07:00
Pragmatic Software
0a4ef4eb40 Factoids: change sort+/sort- to +sort/-sort in $var modifier 2020-05-30 01:28:59 -07:00
Pragmatic Software
2e3fed5bae Factoids: more improvements to $variable expansion:
* removed debug code
* index() with a negative value will index from tail end
* improved handling of trailing modifier punctuation
2020-05-30 01:03:07 -07:00
Pragmatic Software
6f9170ecbc Factoids: improvements to $var modifiers 2020-05-29 23:05:51 -07:00
Pragmatic Software
76863dea5c Factoids: strip quotes from pick() $var modifier 2020-05-29 22:34:29 -07:00
Pragmatic Software
9a165a129c Factoids: fix index() $var modifier 2020-05-29 22:22:22 -07:00
Pragmatic Software
669bf7460c Factoids: add more :modifiers to $var expansion: index(x), pick(x, y), enumerate, etc 2020-05-29 22:18:07 -07:00
Pragmatic Software
b57fea8120 Factoids: fix export errors upon exit by correcting atexit registration order 2020-05-29 20:43:07 -07:00
Pragmatic Software
beef46f120 Variables such as $0 can now be escaped, e.g. in factset, etc 2020-05-21 19:23:30 -07:00
Pragmatic Software
fdc8cd54d5 Factoids: fix spelling of cmd_factfind in interpreter() 2020-05-04 23:49:59 -07:00
Pragmatic Software
a26411fbc4 Factoids: remove debug statement 2020-05-02 23:54:49 -07:00
Pragmatic Software
33f8c5aeab Factoid rate-limit no longer affects factoids piped/substituted/splitted within the same command 2020-05-02 23:49:29 -07:00
Pragmatic Software
cfba96e8ae Rename $stuff to $context throughout 2020-05-01 20:59:51 -07:00
Pragmatic Software
cac4ac81ad Factoids: Fix undo/redo via DualIndexSQLiteObject 2020-03-19 18:58:24 -07:00
Pragmatic Software
55115d8d16 Factoids: improve "No such factoid" message when no matches found 2020-03-17 23:08:56 -07:00
Pragmatic Software
e28d664cd5 Factoids: /msg caller for unknown command instead of silently disregarding 2020-03-04 09:56:22 -08:00
Pragmatic Software
3ff232decd DualIndexSQLiteObject: refactor get_each() to use array instead of hash 2020-03-03 07:40:23 -08:00
Pragmatic Software
941b3327c6 Factoids: Optimize export_factoids() with get_each() and get_next() 2020-02-29 01:46:29 -08:00