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
Ean Milligan
a42b75aa51
deno fmt
2025-04-26 23:42:43 -04:00
Ean Milligan
f3a6a36fb0
update links to be driven by config, update strings to use bot name from config
2025-04-26 23:24:26 -04:00
Ean Milligan
864f281c60
Mass spelling fix
2025-04-26 23:08:57 -04:00
Ean Milligan
74c733308f
linting/type cleanup
2025-04-26 22:44:39 -04:00
Ean Milligan
103ad8a8f5
deno fmt
2025-04-26 22:38:11 -04:00
Ean Milligan
09e97eabc1
Formatting updates, slight reorg on loop control, drop loop count to 1million, use new Log4Deno to get closeLog func, fix logging in workers
2025-04-26 22:34:07 -04:00
Ean Milligan
957e84ea2b
remove weird/useless comment
2025-04-26 17:03:18 -04:00
Ean Milligan
4fbcf15953
fix [[popcat not working, 0 is false lol
2025-04-26 17:02:54 -04:00
Ean Milligan
8483367cb5
3.0.0 release, support Deno 2.X
2025-04-26 16:47:55 -04:00
Ean Milligan
dff1e97186
update api roll to use resolve instead of old respondWith
2025-04-26 16:42:44 -04:00
Ean Milligan
1240bff99c
update api to use cleaner method of verifying query params
2025-04-26 15:19:16 -04:00
Ean Milligan
e0e013bf61
fix rollQueue to handle a queued api roll if it happens
2025-04-26 15:16:16 -04:00
Ean Milligan
1069b99091
start fixing apiRoll
2025-04-26 14:49:11 -04:00
Ean Milligan
d2a7c25879
migrate to deno 2.0 serve
2025-04-26 14:27:36 -04:00
Ean Milligan
c7c974c395
deno fmt
2025-04-26 13:23:37 -04:00
Ean Milligan
76e007e2e4
update db structure to let init work correctly
2025-04-26 13:22:45 -04:00
Ean Milligan (Bastion)
23ca3a2665
Fix error that was causing crash when posting statistics
...
Additionally, added system logging to rc.service
2022-07-31 16:09:14 -04:00
Ean Milligan (Bastion)
766dff179e
Update wording around OPT-IN command
2022-07-10 02:50:18 -04:00
Ean Milligan (Bastion)
7bb6018bdf
Made [[opt-in available via DM only
2022-07-10 02:17:41 -04:00
Ean Milligan (Bastion)
f43cf0fa31
Add mention of opt-out to the @mention and [[privacy commands
2022-07-10 02:03:00 -04:00
Ean Milligan (Bastion)
38146a3c8f
deno fmt
2022-07-10 01:59:55 -04:00
Ean Milligan (Bastion)
539616679b
Add opt-out/opt-in commands
...
Allows users to be globally ignored by the bot.
2022-07-10 01:58:37 -04:00
Ean Milligan (Bastion)
7b03f3140e
V2.0.3 - Fix multiline input
2022-07-09 17:02:22 -04:00
Ean Milligan (Bastion)
f4b0e04cec
V2.0.2 - Fix faulty array.splice in solver
2022-07-09 02:23:42 -04:00
Ean Milligan (Bastion)
c4c7098479
V2.0.1 - Fix parens, update guild audit command
2022-07-08 23:51:31 -04:00
Ean Milligan (Bastion)
18c5d2a23c
update heatmap.png
2022-07-08 01:31:13 -04:00
Ean Milligan (Bastion)
5b7cb60382
Guild Audit command flushed out
2022-07-05 23:49:10 -04:00
Ean Milligan (Bastion)
36405421f6
Compounding explosions are now functional
2022-07-05 22:34:59 -04:00
Ean Milligan (Bastion)
7823227f6e
Penetrating explosions are now functional, added formatting for explosions
2022-07-05 22:19:10 -04:00
Ean Milligan (Bastion)
5366206951
Begin adding support for penetrating and compounding explosions
...
Added rollDecorators help command to make [[?? small enough to fit in discord
Added documentation on penetrating and compounding
2022-07-05 21:47:37 -04:00
Ean Milligan (Bastion)
0e69231f20
Add fate dice documentation
2022-07-05 19:33:28 -04:00
Ean Milligan (Bastion)
094974df80
Add support for fate dice, fixed math with zeroes
2022-07-05 19:27:06 -04:00
Ean Milligan (Bastion)
edac1db702
deno fmt & sonar fix
2022-07-04 22:33:02 -04:00
Ean Milligan (Bastion)
a06042e6d4
Add OVA Dice documentation
...
Additionally, simplified the ova dropper
2022-07-04 22:26:14 -04:00
Ean Milligan (Bastion)
169ed564ae
OVA dice done
2022-07-04 22:19:09 -04:00
Ean Milligan (Bastion)
8e84be1656
Started work on OVA dice, adjusted parser to fall back to the roller
2022-07-04 20:37:38 -04:00
Ean Milligan (Bastion)
ed0a12c3bc
deno fmt + added docs on cwod dice
2022-06-29 03:28:15 -04:00
Ean Milligan (Bastion)
f95d24375d
sonar fix
2022-06-29 03:21:09 -04:00
Ean Milligan (Bastion)
31ad662212
sonar fix
2022-06-29 03:18:45 -04:00
Ean Milligan (Bastion)
229353c3fe
screwed the boolean logic up lol
2022-06-29 03:16:53 -04:00
Ean Milligan (Bastion)
11e42c77fd
rework, deduplicated code
2022-06-29 03:16:19 -04:00
Ean Milligan (Bastion)
6dd0bd0e8e
Missed removing these
2022-06-29 03:02:37 -04:00
Ean Milligan (Bastion)
6ad0d2ca2b
Basic support added for CWOD rolls
2022-06-29 03:01:20 -04:00
Ean Milligan (Bastion)
61607dc75d
Fix a weird race condition where the worker wouldn't be ready when it needed to be
2022-06-28 23:44:14 -04:00
Ean Milligan (Bastion)
872f67d908
update heatmap embed
2022-06-27 20:32:03 -04:00
Ean Milligan (Bastion)
f9355ae255
Sonar fix
2022-06-26 23:20:06 -04:00
Ean Milligan (Bastion)
6adf18008a
Update heatmap embed to show min and max vals
2022-06-26 23:18:44 -04:00
Ean Milligan (Bastion)
51924b7f14
sonar fix
2022-06-26 23:11:58 -04:00
Ean Milligan (Bastion)
c71f6f76e4
update deno fmt, update std version, sonar fix
2022-06-26 23:08:32 -04:00
Ean Milligan (Bastion)
a7cdd91969
Add heatmap.png generator
2022-06-26 22:53:25 -04:00
Ean Milligan (Bastion)
42cb268a58
sonar fix
2022-06-26 20:23:42 -04:00
Ean Milligan (Bastion)
8e6467fd17
Continued work on heatmap
2022-06-26 20:18:41 -04:00
Ean Milligan (Bastion)
e8464cf7bb
Initial work on [[heatmap, fixed some loggers to be edit instead of send
2022-06-25 16:38:04 -04:00
Ean Milligan (Bastion)
2b22df032c
Change dailyRate to hourlyRate, added math to calculate the rates
2022-06-25 16:26:48 -04:00
Ean Milligan (Bastion)
b69cf2060f
Create roll heatmap table and sproc, add dailyRate to command_cnt table
2022-06-25 02:09:41 -04:00
Ean Milligan (Bastion)
011120845e
created callIncCnt function for simplicity
2022-06-24 21:32:18 -04:00
Ean Milligan (Bastion)
b0266ad385
forgot to remove these
2022-06-24 21:11:27 -04:00
Ean Milligan (Bastion)
a8bcdb346b
deno fmt
2022-06-24 21:06:45 -04:00
Ean Milligan (Bastion)
d769ac0e5a
added db error message log, added edit message log
2022-06-24 20:52:56 -04:00
Ean Milligan (Bastion)
57518f75a9
deno fmt
2022-06-22 21:45:40 -04:00
Ean Milligan (Bastion)
021f33fc38
Started moving common log messages to one spot
2022-06-22 21:43:57 -04:00
Ean Milligan (Bastion)
bff208d560
add catches to all messages
2022-06-22 02:06:50 -04:00
Ean Milligan (Bastion)
dba1976a8e
Add messages to all api calls
2022-06-22 01:57:38 -04:00
Ean Milligan (Bastion)
cc45794497
Added messages to most api calls
2022-06-21 21:48:07 -04:00
Ean Milligan (Bastion)
93375585c1
sonar fixes
2022-06-21 21:36:21 -04:00
Ean Milligan (Bastion)
d45cc89eec
Cleaned up API responses to make them more standard and easier to customize
2022-06-21 21:33:24 -04:00
Ean Milligan (Bastion)
0cabfe0c99
sonar fixes
2022-06-20 21:03:01 -04:00
Ean Milligan (Bastion)
6e448907ee
deno fmt
2022-06-20 20:55:40 -04:00
Ean Milligan (Bastion)
df8c31d6d3
API updated to user rollWorker for rolling, fixed api not working at all lol
2022-06-20 20:55:12 -04:00
Ean Milligan (Bastion)
a0dae3416f
Preparing rollQueue to handle api Rolls
2022-06-20 19:18:23 -04:00
Ean Milligan (Bastion)
170c089fe9
deno fmt
2022-06-20 17:37:45 -04:00
Ean Milligan (Bastion)
71e1d42f68
rollQueue reorg
2022-06-20 17:35:00 -04:00
Ean Milligan (Bastion)
3931ee8394
Add roll error code to embed footer
2022-06-19 21:56:50 -04:00
Ean Milligan (Bastion)
137f6388f7
comment updated
2022-06-19 04:19:25 -04:00
Ean Milligan (Bastion)
66f08bf538
deno fmt
2022-06-19 03:56:04 -04:00
Ean Milligan (Bastion)
4a34596bee
Restructured API code to be more readable (like commands)
2022-06-19 03:55:33 -04:00
Ean Milligan (Bastion)
60e13cbd51
Moar Sonar Cleanup
2022-06-19 01:57:10 -04:00
Ean Milligan (Bastion)
bb10d52506
Implemented queueing system for rollWorker to limit number of concurrent workers
...
Moved some consts to the config.ts file
Added flag to disable logging while rolling for a massive speed increase and to increase stability of the bot
2022-06-19 01:51:16 -04:00
Ean Milligan (Bastion)
26085e8238
actually fixed negative numbers
2022-05-28 04:10:09 -04:00
Ean Milligan (Bastion)
db1e55b415
Sonar Fix
2022-05-28 03:49:24 -04:00
Ean Milligan (Bastion)
da00caaa74
deno fmt
2022-05-28 03:41:33 -04:00
Ean Milligan (Bastion)
1f4d1e3ef6
Added rollWorker so that multiple dice rolls can happen simultaneously
2022-05-28 03:37:11 -04:00
Ean Milligan (Bastion)
7391a0fd68
deno fmt
2022-05-28 02:07:23 -04:00
Ean Milligan (Bastion)
a01b8b8fd2
Added Audit system, Guild auditing put on hold
2022-05-28 02:07:00 -04:00
Ean Milligan (Bastion)
b7f9fc852a
reorder deps so comments are correct
2022-05-28 00:48:34 -04:00
Ean Milligan (Bastion)
6cfe98e954
deno fmt + rework api subcommands to be a switch statement
2022-05-28 00:09:09 -04:00
Ean Milligan (Bastion)
17c8e0c599
constantCmds rewrite, moved single-use text nodes to their individual command files
2022-05-27 21:59:23 -04:00
Ean Milligan (Bastion)
25cc171f3c
removed unused import
2022-05-27 21:00:34 -04:00
Ean Milligan (Bastion)
b887b93bb2
Roll command now utilizes embeds, count decorator (-c) complete, added [[api h shorthand
2022-05-27 20:59:09 -04:00
Ean Milligan (Bastion)
bbba797dc3
Sonar Cleanup - Phase 8
2022-05-22 17:30:30 -04:00
Ean Milligan (Bastion)
45207f9cfc
Sonar Cleanup - Phase 6
2022-05-22 17:08:02 -04:00
Ean Milligan (Bastion)
aa97a1514c
Sonar Cleanup - Phase 5
2022-05-22 16:59:40 -04:00
Ean Milligan (Bastion)
9eff1f0835
Sonar Cleanup - Phase 4
2022-05-22 16:12:05 -04:00
Ean Milligan (Bastion)
d6ec306792
Sonar Cleanup - Phase 2
2022-05-22 15:53:44 -04:00
Ean Milligan (Bastion)
891a36a9ba
Sonar Cleanup - Phase 1
2022-05-22 15:29:59 -04:00
Ean Milligan (Bastion)
5e84b1c0b4
added deno.json, ran deno fmt to standardize formatting
2022-05-20 04:43:22 -04:00
Ean Milligan (Bastion)
bf382d01ad
Added embed generator for Counts, fixed projectKey for sonar
2022-05-20 00:27:27 -04:00
Ean Milligan (Bastion)
bf7a0aa5d2
Fix screwy embeds on mobile.
...
Why tf do embeds keep whitespace on mobile but not on desktop, no one will ever know. Thanks for the consistency discord!
2022-05-19 23:14:41 -04:00
Ean Milligan (Bastion)
a270a4b8f7
Started work on adding count decorator
2022-05-19 02:53:30 -04:00
Ean Milligan (Bastion)
04d7324769
deduplicated some code in the getModifiers func
2022-05-18 05:12:04 -04:00
Ean Milligan (Bastion)
394ae211df
Set colors for all embeds
2022-05-18 05:03:24 -04:00
Ean Milligan (Bastion)
733908f2c0
Added !o !<>= and !o<>=, updated embeds to be more consistent, started coloring embeds
2022-05-18 04:48:52 -04:00
Ean Milligan (Bastion)
26b9309aa3
Added more loop protection, started on exploding once/on range options
2022-05-17 01:41:53 -04:00
Ean Milligan (Bastion)
febd735c05
removed roll docs from roller.ts file
...
This was redundant info found in the README and [[?? command. There is no reason to have three copies of this,
2022-05-17 01:11:38 -04:00
Ean Milligan (Bastion)
0cafda573f
Added Reroll Once option, which cannot be used with the standard reroll option
2022-05-17 01:09:01 -04:00
Ean Milligan (Bastion)
781092a24f
Added GEQ/LEQ documentation to readme
2022-05-17 00:35:42 -04:00
Ean Milligan (Bastion)
ddd091d572
Improved rollhelp cmd
2022-05-17 00:28:26 -04:00
Ean Milligan (Bastion)
b18ff7dc68
Updated rollhelp to inclue QEG/LEQ option on reroll
2022-05-13 19:25:23 -04:00
Ean Milligan (Bastion)
5b27abbba9
Added @mention command to learn about the bot
2022-05-13 18:57:45 -04:00
Ean Milligan (Bastion)
72b715b188
Added GEQ/LEQ option to reroll (similar to cs modifier)
2022-05-13 18:24:03 -04:00
Ean Milligan (Bastion)
9b77912a85
Added super no details flag to the api
2022-05-09 19:52:15 -04:00
Ean Milligan (Bastion)
eba7e028b2
Finalized hide-warn command
2022-05-09 19:18:49 -04:00
Ean Milligan (x1g5)
88faa27278
Added hideWarn cmd file with template code
2022-05-09 17:43:15 -04:00
Ean Milligan (x1g5)
0d1ef83f50
DB design update to support per channel configuration for the api
2022-05-09 17:25:59 -04:00
Ean Milligan (Bastion)
337b266456
Continued reorg, broke solver down into parts for better readability
2022-05-06 23:20:04 -04:00
Ean Milligan (Bastion)
15e8f847c5
Add super no details decorator
2022-05-06 00:10:21 -04:00
Ean Milligan (Bastion)
06df068ac2
Added calculating stats message to stats command
2022-05-05 23:08:30 -04:00
Ean Milligan (Bastion)
120532b630
Fixes issues around negative numbers
2022-05-05 03:39:22 -04:00
Ean Milligan (Bastion)
6a305d1479
added 𝜋 char support
2022-05-05 02:59:57 -04:00
Ean Milligan (Bastion)
6b2aae8dfb
Update to use Log4Deno dep
2022-05-05 02:49:06 -04:00
Ean Milligan (Bastion)
50288534b6
roll flags renamed to decorators
...
Additional details also added to the privacy policy/terms of service to specify exactly what discord bot they apply to
2022-05-05 02:28:51 -04:00
Ean Milligan (Bastion)
23c16f7832
Optimized emoji command, made all command responsess more dynamic
...
Emoji command should be significantly more optimized by rejecting non-emojis much faster
Bot will now respond with the prefix/postfix set in the config instead of assuming the prefix/postfix are always [[/]]
2022-05-05 02:19:19 -04:00
Ean Milligan (Bastion)
d2083bea53
converted all substr to substring
2022-05-05 01:51:05 -04:00
Ean Milligan (Bastion)
541747285f
Minor adjustments
...
report command now requires a description
moved an insert query that was duplicated many times to new constant in the db.ts import
improved error reporting on roll modifiers, they now are fancy EMBEDS!
2022-05-05 01:46:47 -04:00
Ean Milligan (Bastion)
ce77893d37
Use new dbClient import in the db init files
2022-05-05 01:03:28 -04:00
Ean Milligan (Bastion)
84768293c1
Code cleanup
...
Improved readability of command code by breaking each function into their own files, breaking down the api command, and starting to break down the roll command
Dep versions also updated, dbClient implemented as its own import, and constantCmds/README updated to improve readability
2022-05-05 00:57:34 -04:00
Ean Milligan (Bastion)
b076751bf2
Converted 90% of bot messages into Embeds
...
Bot messages will now be pretty :3
2021-11-22 01:11:10 -05:00
Ean Milligan (Bastion)
60188ca5d8
Initial work on V2.0.0
...
Updated dependencies and corrected syntax errors caused by the newer deps.
2021-11-21 22:14:57 -05:00
Ean Milligan (Bastion)
15864e7f6d
V1.4.3 - Minor Update + Bugfixes
...
All files have received a handful of debug messages, this is to aid in finding the source of some recent crashes and to help find future issues
config.example.ts, */index.html, README.md - version number bump
utils.ts - Console will only get spammed by DEBUG level messages if artificer is in DEBUG mode. DEBUG statements are still logged to file
solver.ts - actually set the original index on the rolls to allow drop/keep to reset the order correctly, change return text to use localPrefix and remove code blocks
mod.ts - breaks args on \n now, -o arg now allows full words instead of just o or a, error checking on file size to make sure the results always send and details send when possible
api.ts - added error checking on file size to make sure the results always send and details send when possible
2021-03-28 00:29:06 -04:00
Ean Milligan (Bastion)
d449d1d85d
utils.log implemented
...
Log files will now be created locally for easy debugging
api.ts, mod.ts, intervals.ts, solver.ts - replaced console.log with utils.log
mod.d.ts - made object syntax consistent
utils.enums.ts - Created LogTypes enum for utils.log
utils.ts - Created initLog and log for logging to files
2021-03-14 23:27:53 -04:00
Ean Milligan (Bastion)
b4d2d71873
Implemented botlist statistic updates
...
config.example.ts - added botlist object(s), adjusted emoji default values since the ID won't be the same for anyone who spins this up themselves
deps.ts - added botID
mod.ts - Added calling of new updateListStatistics for non-local bots
README.md - Added support invite link, fixed some tab vs spaces issues, added mention of development plans on the milestones pge, linked Deno and Discordeno
intervals.ts - Added updateListStatistics function
2021-03-13 15:10:35 -05:00
Ean Milligan (Bastion)
ddb8f62eca
V1.4.2 - Code Rework + minor bugfixes
...
.gitignore - added new logs folder for future feature
config.example.ts, README.md, *index.html - version bumped
deps.ts - moved all remote dependencies to this file to make version updating easier
db/* - changed deps to new format
longStrings.ts, README.md - fixed typo
mod.ts - changed deps to new format, implemented error catching for editBotStatus, moved api to separate file
api.ts - pulled api code to this file for better organization
intervals.ts - new utility file for functions that will be called after bot boots (and that continue to be called on a specified interval
mod.d.ts - documentation added
solver.ts - newline
utils.ts - updated deps to new format
2021-02-19 20:44:38 -05:00
Ean Milligan (Bastion)
d30d43b2ee
V1.4.0 Completed
...
This update adds a handful of new features and readies the API for public use. Detailed changes below:
config.example.ts - Bumped version, added local testing options, added prefill data, changed default logging to false, moved long strings for help and rollhelp to longStrings.ts
db/initialize.ts (previously initDB.ts) - Relocated file for organization, added local options, added new command count and allowed guilds table, created stored procedure for counting commands
db/populateDefaults.ts - Fills in db with default values, adding admin's api key and populating the command count table
flags.ts - Centralized flags for dev/local modes
longStrings.ts - Moved all long string commands to here, contains help, rollhelp, apihelp, info, and privacy commands
mod.ts - Moved flags out into flags.ts, implemented local mode for development, implemented command counting for basic statistics, added info and privacy commands for user help, added more stats to the stats command, added api command, allowing users to allow or block api rolls from happening in their server, reformatted API code, using proper HTTP methods, makes sure api is allowed to roll into chosen guild, added delete endpoint to remove user's data from the database, added endpoint to allow the general public to generate their own api keys
PRIVACY.md - I got bored and wrote a privacy policy, detailing how little data is collected and how the user can have their data removed
README.md - Added new commands to README, updated API documentation, added delete endpoint, updated self hosting details
src/utils.ts - Bumped discordeno version
www/api - Built API website
www/home (previously located in www) - Moved for better organization, minor fixes, updated API details,
2021-02-12 23:26:33 -05:00