Commit Graph

37 Commits

Author SHA1 Message Date
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) 73288073b1 typo fix 2021-05-18 10:47:39 -04:00
Ean Milligan (Bastion) 4442571dd0 Documentation Update
This update to documentation was done to prepare for verification with Discord.
Added a mention of the Privacy Policy and Terms in the README.
Small update to the privacy policy, fixing a placeholder text I forgot about and detailing why data may be kept in accordance with GDPR.
Added a Terms of Service/User Agreement.
2021-05-18 10:46:37 -04: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) 0b5f44d18c Shortlink created
Replaced roll20 direct links with a shorter link that I can change if roll20 moves/removes this page
2021-03-13 15:33:21 -05: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 2a22dc7b04 Update issue templates 2021-02-22 17:25:09 -05:00
Ean Milligan 28f93446bd Update issue templates 2021-02-22 17:18:37 -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) fc218e1644 V1.4.1 Minor update
This is a very minor update.  Only things changed are the status now rotates thru a list to promote other commands and show off a little bit.

Most files are updated due to version number.
2021-02-13 01:59:25 -05:00
Ean Milligan (Bastion) dc06bc35df Patch to API Tools Website
Some code was out of order, fixed now.
2021-02-13 01:31:26 -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
Ean Milligan (Bastion) 569974933d more wordage changes i thought I had already made 2021-01-27 03:56:55 -05:00
Ean Milligan (Bastion) 733cee166c Additional wordage added to www 2021-01-27 03:52:54 -05:00
Ean Milligan (Bastion) f5c663f588 bump www version num 2021-01-27 03:36:51 -05:00
Ean Milligan (Bastion) 5a50f2a19f V1.3.3 HOTFIX
Patch to more strictly type mod.ts
2021-01-27 03:34:49 -05:00
Ean Milligan 2f6b76cdf7
forgot to bump README versioning 2021-01-27 02:38:11 -05:00
Ean Milligan (Bastion) 85d9a5b2ee V1.3.2 Released
Mostly just minor bug fixes, along with a new -o flag for the roll command.

config.example.ts - Refactored help command to provide more detail
mod.ts - Added new rollhelp command, added new order flag for the roll command, adjusted method of handling messages of over 2k characters to attach a .txt file instead of spamming the user, API got order flag aswell, along with the 2k char adjustment
README.md - Spelling corrected, added documentation for roll command flags
solver.d.ts - Added new needed type
solver.ts - Add new order feature, minor bug fix to correct dropping rolls correctly
utils.ts - Added support for new 2k char handling
www/* - Built website to showcase bot
2021-01-27 02:35:46 -05:00
Ean Milligan (Bastion) 0476678dbf V1.3.1 forgot to bump version num
this only bumps the version number,
2021-01-18 12:03:13 -05:00
Ean Milligan (Bastion) 63efd0a918 V1.3.0 Released
config.example.ts updated to include full documentation of all options.
initDB.ts updated with minor fixes.
mod.ts updated command handling, upgraded api to have secured access, key and channel management, minor bug fixes, and rate limiting.
solver.ts updated with minor fix to prevent discord formatting from completely and utterly breaking.
README updated.
2021-01-18 11:50:22 -05:00
Ean Milligan (Bastion) 31349c5f51 DB Added
Optional logging of rolls added
API Key Verification Added
API Authorization/Authentication Added
2021-01-14 08:47:18 -05:00
Ean Milligan (Bastion) 05e6a4d8be README updated with correct version and date 2021-01-11 04:12:05 -05:00
Ean Milligan (Bastion) 86c7ebafc3 README updated to include note of the API 2021-01-11 04:02:43 -05:00
Ean Milligan (Bastion) 3be12086b1 V1.1.1
Missed a couple breaks
2021-01-11 03:46:34 -05:00
Ean Milligan (Bastion) 30455af88c V1.1.0 Completed
Added initial support for Artificer API access.  This is currently not secured in any way.

Config updated to include api settings
.gitignore cleaned up
mod.ts now has initial API built in
2021-01-11 03:42:57 -05:00
Ean Milligan (Bastion) e69654a835 Finalizing README for V1.0.0 2021-01-08 12:48:08 -05:00
Ean Milligan (Bastion) 7ea96e6aa5 Updated README 2021-01-08 09:24:58 -05:00
Ean Milligan (Bastion) df4705360d Minor bug fixes and documentation completed
This is version 1.0.0 release.
2021-01-08 01:02:38 -05:00
Ean Milligan (Bastion) 96a4a88c2f Auto stash before rebase of "refs/heads/master" 2021-01-07 14:00:46 -05:00
Ean Milligan (Bastion) 920c8824fe Auto stash before merge of "master" and "origin/master" 2021-01-07 13:59:12 -05:00
Ean Milligan bfff1de45b
Update README.md 2020-12-23 02:45:29 -05:00
Ean Milligan 3881351d3c
Update README.md 2020-12-17 03:34:55 -05:00
Ean Milligan 25d8e831cc
Initial commit 2020-12-17 03:34:37 -05:00