Commit Graph

290 Commits

Author SHA1 Message Date
Ean Milligan 41fbb1bd50 fix newlines not being respected in roll command, fix some followup issues in the [[r or [[roll command variants 2025-06-26 04:15:12 -04:00
Ean Milligan fcae60cb69 deno fmt 2025-06-26 03:39:52 -04:00
Ean Milligan f4fcb097c3 improve the YouNeedAD error message 2025-06-26 03:39:48 -04:00
Ean Milligan ac63642d3a add extra newline between raw and results 2025-06-26 03:31:46 -04:00
Ean Milligan 4516f17949 deno fmt 2025-06-26 03:28:35 -04:00
Ean Milligan 414bab3a0d fix plurality of success and fail on cwod dice 2025-06-26 03:27:33 -04:00
Ean Milligan ae321885d6 Remove the rollDecorators command, implement roll command help library, god this was a pain to write 2025-06-26 03:17:26 -04:00
Ean Milligan 5b7ceb9f88 add internal flag of if a roll is complex to add warning message to nominal 2025-06-21 21:41:56 -04:00
Ean Milligan 6162339942 strip whitespace from initial config in output text 2025-06-21 21:23:19 -04:00
Ean Milligan 0066652590 deno fmt 2025-06-21 21:09:05 -04:00
Ean Milligan 9d6b389d71 Add simulated nominal flag 2025-06-21 21:08:53 -04:00
Ean Milligan babc57497e Add Roll Distribution flag 2025-06-21 16:18:04 -04:00
Ean Milligan 308f897eb7 update countDetail reducer 2025-05-06 04:20:29 -04:00
Ean Milligan b1fce05149 eliminate some cpu cycles per roll by only reducing when count or confirmCrit is on 2025-05-06 03:10:40 -04:00
Ean Milligan 7a0b49dc0c Add loopCountCheck to more loops 2025-05-06 03:00:57 -04:00
Ean Milligan 5e1a509c96 add loopCountCheck to new loop 2025-05-06 02:53:15 -04:00
Ean Milligan 14e909c89f Move count reducer to artigen/utils/counter.ts, implement auto-confirm-crit flag 2025-05-06 02:50:56 -04:00
Ean Milligan b169ee8632 Change artigen to take rollRequest to use originalCommand as the raw text, then use remaining args after getModifiers eats mods 2025-05-05 18:19:39 -04:00
Ean Milligan 2fe2c5f296 add hideRaw flag 2025-05-05 16:08:18 -04:00
Ean Milligan 46026d6a08 change hide details to just hide the 1+2+3 part 2025-05-05 14:15:18 -04:00
Ean Milligan 5d1d39bebf move artigen embeds into artigen's utils folder 2025-05-05 14:08:54 -04:00
Ean Milligan 7ba6da1404 alphabetize populatedefaults 2025-05-05 14:03:01 -04:00
Ean Milligan 4f3a9bb797 update guild create 2025-05-05 13:56:56 -04:00
Ean Milligan 55b2367900 fix db logging for opt-in 2025-05-05 13:56:34 -04:00
Ean Milligan 5da94fafa0 add lemon 2025-05-04 01:40:59 -04:00
Ean Milligan 3aa8faf991 comment 2025-05-03 23:28:53 -04:00
Ean Milligan ede1562f33 doesnt on empty list 2025-05-03 23:22:59 -04:00
Ean Milligan 1ea2f64341 add batching system to guild create 2025-05-03 23:21:51 -04:00
Ean Milligan e5e77189ec update log msgs 2025-05-03 23:06:13 -04:00
Ean Milligan 426f0d7069 move event handlers to separate files 2025-05-03 22:53:53 -04:00
Ean Milligan 897fe80533 comments 2025-05-03 22:30:43 -04:00
Ean Milligan 0b864b0f21 removed [[r shorthand from report command, add [[r and [[roll as aliases to the roll command 2025-05-03 22:02:15 -04:00
Ean Milligan fafaee67b3 fix rollhelp chars 2025-05-03 21:47:40 -04:00
Ean Milligan 504df7c80f fix (5)-5 so it does +-5 instead of *-5 2025-05-03 21:41:23 -04:00
Ean Milligan 058695415e change export order to match import order 2025-05-03 21:07:06 -04:00
Ean Milligan 65a182cb50 deno fmt 2025-05-03 21:03:30 -04:00
Ean Milligan aa7814d1fe fix imports 2025-05-03 20:59:49 -04:00
Ean Milligan 9a5574f91e move utils around 2025-05-03 20:58:18 -04:00
Ean Milligan 3e6844ed10 remove mod.d.ts since all types have been relocated now 2025-05-03 20:53:17 -04:00
Ean Milligan f2797e6c33 update common embed location, move some back into their own files 2025-05-03 20:47:58 -04:00
Ean Milligan f6eb3b2b69 fix gm roll mentions, fix api gm roll, add link back to original roll message in gm message 2025-05-03 19:54:42 -04:00
Ean Milligan 4de1115fa9 add type 2025-05-03 19:11:18 -04:00
Ean Milligan 99c2d096f7 add default param 2025-05-03 19:06:43 -04:00
Ean Milligan b7e58f56a5 Add support for variables (pulling from previous commands in same message) 2025-05-03 18:15:51 -04:00
Ean Milligan d142b35522 fix -number check to identify +-1 and collapse the +-1 into "+" and "-1" instead of "+" "-" and "1" 2025-05-03 17:06:38 -04:00
Ean Milligan d094efb279 log error in artigen 2025-05-03 17:01:59 -04:00
Ean Milligan 7808093bc7 add initial value to reduce 2025-05-03 16:49:00 -04:00
Ean Milligan 9d7aed2773 remove redundant gmModifiers 2025-05-03 10:15:04 -04:00
Ean Milligan c31436e45d turn off debug mode 2025-05-03 10:03:14 -04:00
Ean Milligan 829ec0ecea move getModifiers into artigen, simplify its error handling a lot 2025-05-03 09:54:25 -04:00
Ean Milligan 9bd757741b remove logging from loopmanager 2025-05-03 09:25:59 -04:00
Ean Milligan bb9a2014ed Move getRollConf to new file, move loopCountChecker to a manager file, implement loopCountCheck on all loops inside artigen 2025-05-03 09:22:07 -04:00
Ean Milligan c6c1a8918e rename entry to artigen.runCmd instead of parser 2025-05-03 08:56:30 -04:00
Ean Milligan bd8f7c8a6f change all object types to interface 2025-05-03 08:52:21 -04:00
Ean Milligan 69f95bf701 organize artigen's types 2025-05-03 08:50:33 -04:00
Ean Milligan c9aff85452 Move RollModifiers to live in artigen 2025-05-03 08:31:07 -04:00
Ean Milligan 1b2851353e move some files around, organize imports 2025-05-03 08:25:00 -04:00
Ean Milligan 07e76733ec some renames 2025-05-03 08:21:11 -04:00
Ean Milligan 8befcc1ca1 typing cleanup 2025-05-03 08:12:05 -04:00
Ean Milligan 03a2acc386 BIIIIIG change here: NESTED ROLLS :D
Also, start the reorganization of artigen to support nesting better, make smaller more readable files, and better named functions
2025-05-03 07:51:12 -04:00
Ean Milligan a7856bc3f2 minor formatting change 2025-05-01 23:43:19 -04:00
Ean Milligan 2b579eb4ac break rollUtils into multiple files 2025-05-01 23:41:23 -04:00
Ean Milligan 730c441645 another rename for clearer stuff 2025-05-01 23:24:45 -04:00
Ean Milligan 7053c25719 reorganize worker management and queue management to be better 2025-05-01 23:19:08 -04:00
Ean Milligan 6ab0923d71 how did i never catch this, if prefix is not 2 characters it breaks, this allows it to be anything 2025-05-01 18:20:23 -04:00
Ean Milligan 7230a7e6b5 Apparently that import map affects deno run as well, fixed so bot runs now 2025-05-01 18:19:57 -04:00
Ean Milligan c981fe5664 [untested] - apply import order to artigen 2025-05-01 18:09:18 -04:00
Ean Milligan f50dec29c7 [untested] - deno fmt 2025-05-01 18:01:23 -04:00
Ean Milligan 6e1c6e8db3 [untested] - start reorganizing the solver folder (renamed to artigen here), organize imports better since deno has support for it now 2025-05-01 17:56:06 -04:00
Ean Milligan b9c7fac984 add comma totals decorator 2025-04-29 18:02:51 -04:00
Ean Milligan 861d1e00cd deno fmt 2025-04-29 18:02:00 -04:00
Ean Milligan ed60f10d04 add guild size dist to audit guilds 2025-04-29 17:42:41 -04:00
Ean Milligan 047d41a20e support all one arg Math functions 2025-04-29 04:11:06 -04:00
Ean Milligan 57bde22e1a remove erroneous console.log 2025-04-29 04:10:52 -04:00
Ean Milligan 0250135c5f improve audit guilds, show counts of duplicate guild owners 2025-04-29 03:16:41 -04:00
Ean Milligan 15ecb45e65 add additional paren balance check 2025-04-29 02:41:31 -04:00
Ean Milligan ba51bd471c update auditGuilds to sort guilds by largest to smallest 2025-04-28 23:26:14 -04:00
Ean Milligan 8cf55aacf5 add time param to heatmap to try to prevent caching of the image on discord 2025-04-28 23:07:30 -04:00
Ean Milligan 3864cb91fc Add support for d% dice 2025-04-28 22:57:49 -04:00
Ean Milligan f44014c22a add query timing to stats command 2025-04-28 22:57:23 -04:00
Ean Milligan 1e350d4e2a force space between all results all the time, means we don't need the regex fixers 2025-04-28 20:28:26 -04:00
Ean Milligan bba4217bd7 make result auto pluralize 2025-04-28 19:50:54 -04:00
Ean Milligan 6b198ecb47 add new error to catch [[floor1_1d3]] and error out correctly 2025-04-28 19:36:54 -04:00
Ean Milligan ac8602f598 Add support for floor/abs/other math operators 2025-04-28 19:17:01 -04:00
Ean Milligan fd7bc5f152 indicate these vars are holding indexes 2025-04-28 03:04:42 -04:00
Ean Milligan 5b0de24466 add docs 2025-04-28 03:04:28 -04:00
Ean Milligan dcd49e20dd deno fmt 2025-04-28 03:04:14 -04:00
Ean Milligan e3dc7bc8b4 add docs for -min 2025-04-27 17:02:32 -04:00
Ean Milligan 4207021fa9 Add Min flag and add -max as option for max flag 2025-04-27 16:58:51 -04:00
Ean Milligan 06095e3bdc Add loopCountCheck to maximizeRoll reroll shortcut 2025-04-27 04:58:54 -04:00
Ean Milligan 2f2a8f67e0 further improve roll safety, no doubling up on drop/keep 2025-04-27 04:46:02 -04:00
Ean Milligan e69806c443 Add additional safeties on rerolling, cleanse other numlists 2025-04-27 04:34:01 -04:00
Ean Milligan 73e4ca94b7 Swap indexOf to includes when indexOf was just being used to check if an item was in an array 2025-04-27 04:15:04 -04:00
Ean Milligan 2e2e08f48a Fix maximize with reroll turned on 2025-04-27 04:09:41 -04:00
Ean Milligan 105bc14e71 improve MaxLoopsExceeded error throwing to be separate func, add it to all loops in the roller. 2025-04-27 03:28:25 -04:00
Ean Milligan 5c517fad67 ensure die count and size are whole numbers 2025-04-27 01:26:30 -04:00
Ean Milligan ed80e08755 add commas to stats, prevent negative /hour nums 2025-04-27 00:47:04 -04:00
Ean Milligan 951d15fcf9 add sex 2025-04-26 23:59:22 -04:00
Ean Milligan 6afaf882fa fix pie 2025-04-26 23:55:30 -04:00
Ean Milligan 1d31a4f059 disable logging 2025-04-26 23:44:03 -04:00