Commit Graph
100 Commits
Author SHA1 Message Date
Minz 24510dcc4c Bot: Change ENV to NODE_ENV in ready.js 2023-08-01 00:41:59 +02:00
Minz ac54231ced Bot: Clear global commands when running as dev 2023-07-31 17:18:22 +02:00
Minz b0311a3bb3 Rendering: Better card debug output
- Add timestamp
- Larger font
2023-07-31 17:17:30 +02:00
Minz 44eb1783ac Debug: Catch and print errors when fetching from Jose 2023-07-31 15:53:30 +02:00
Minz e2dab416f2 GeneralUtils/Profile: Shorten numbers to K M B format
- Implemented for currencies on the profile
2023-07-31 15:52:42 +02:00
Minz 724621f8da Rendering: Add debug output in develop mode
- Burn node info into rendered card
- Log job def onto console
2023-07-31 14:49:00 +02:00
Minz 56ff2f96a5 Merge pull request #58 from JanGross/master
Merge master into dev-new-rendering
2023-07-31 11:38:40 +02:00
Minz ce98c9e736 Merge pull request #57 from JanGross/dependabot/npm_and_yarn/semver-5.7.2
Bump semver from 5.7.1 to 5.7.2
2023-07-12 16:06:14 +02:00
Minz a3439da93f Merge pull request #55 from JanGross/dependabot/npm_and_yarn/dottie-2.0.4
Bump dottie from 2.0.3 to 2.0.4
2023-07-12 16:05:53 +02:00
Minz fe9b52c02d Editprofile: Properly defer updates on non-modal interactions
Also fixes interaction filtering by user id.
Also fixes collector filtering by modal customID
2023-06-12 22:31:28 +02:00
Minz 2d9f66acd4 Bump node versiom to 20
node:20-alpine
2023-06-12 21:56:45 +02:00
Minz 487ee866ba Cleanup legacy rendering code and files
also removes dockerfile and imagemagick.
2023-06-12 21:55:13 +02:00
Minz 14fbe1ab5d Rendering: Reposition labels for top-aligned default 2023-06-12 21:27:27 +02:00
Minz 7175271233 Rendering: Add placeholder frame
and fix profile card alignment
2023-06-12 16:40:11 +02:00
Minz f84a1deddb Profile: Add stats bar to new rendering 2023-06-12 14:38:40 +02:00
Minz 5dd106354b Profile: Add userimage and status to new profile 2023-06-12 01:36:56 +02:00
Minz 9a79521a27 Profile: Add new rendering for username and showcase 2023-06-11 23:55:27 +02:00
Minz b0d08f119e Editprofile: Remove top level defer which broke modal inputs 2023-06-11 21:55:30 +02:00
Minz e25d3bb2cb Update toho-jose reference 2023-06-11 20:56:53 +02:00
Minz 7e045df971 Add Toho-Miku banner 2023-06-11 20:56:05 +02:00
Minz ce5cfafd1d Rendering: Hide card if it's unclaimed 2023-06-08 14:13:37 +02:00
Minz 8b35534517 Rendering: Replace card stack rendering with external API call 2023-06-08 13:47:49 +02:00
Minz 795d3b444e API: Serve static assets via express 2023-06-08 12:17:16 +02:00
Minz 46bc9ae711 Rendering: Add configurable Jose endpoint 2023-06-08 10:13:03 +02:00
Minz d4caefc077 Missing: Use embeds 2023-06-06 14:52:38 +02:00
Minz 088079cc0e Commands: Add core missing command 2023-06-05 17:56:48 +02:00
Minz a98f5e0ebc Rendering: WIP Replacing renderer with external API 2023-06-02 12:36:18 +02:00
Minz 5a47d0695f Clear guild commands on production
to avoid duplicates
2023-05-31 21:39:36 +02:00
Minz fc927aa664 Add related project references to README 2023-05-25 10:01:48 +02:00
Minz 4f62cceaa0 API: Redirect 404 routes to homepage 2023-05-25 09:06:13 +02:00
Minz da9044bb15 Readme: Add Discord and Patreon badges 2023-05-03 17:42:24 +02:00
Minz 06f968bceb Docs: Fix link paths 2023-04-17 18:21:21 +02:00
Minz 969c257ee4 Docs: Add docs for API routes
and remove legacy import instructions
2023-04-17 18:15:37 +02:00
Minz 85cebd2886 API: Add missing auth check to POST /characters 2023-04-17 17:53:12 +02:00
Minz aea807ca3c API: Properly handle not found cases for groups and characters 2023-04-17 16:00:12 +02:00
Minz 3915956bea API: Add routes for badges 2023-04-17 15:57:36 +02:00
Minz 833fcd4c74 API: Move character routes to separate file 2023-04-17 15:47:43 +02:00
Minz 2e04a85eb8 API: Move group routes to separate file 2023-04-17 15:46:28 +02:00
Minz 5712ea38c1 API: Move API Key auth to middelware file 2023-04-17 15:28:13 +02:00
Minz e2f18e1df5 API: Add routes to create and update groups/characters 2023-04-17 15:07:29 +02:00
Minz 1b9693401c API: Add routes to fetch groups and characters 2023-04-17 14:31:12 +02:00
Minz 1449e816e1 API: Don't send response if no res object is passed to auth check 2023-04-17 14:29:33 +02:00
Minz babb45f461 Drop: Only ping when wishlist pings are enabled
by the user.
2023-04-05 17:17:10 +02:00
Minz 6067fbb24e Editprofile: Add buttons to toggle ping user-settings 2023-04-05 16:48:46 +02:00
Minz a1c9f9f32e ReplyUtils: Make component recreation compatible with multi-row components 2023-04-05 16:47:13 +02:00
Minz 4b598cadbf DB: Add fields for ping settings 2023-04-05 15:23:42 +02:00
Minz c5ab964cef API: Add type filter to most-recent-drop
otherwise claims would break the output
2023-04-05 13:07:20 +02:00
Minz f1e01f2a9f API: Add experimental Json API
in preparation for external healthchecks and the
admin backend. We define a couple test routes:

- / List all routes
- /ping Replies pong for online-checks
- /stats Get high-level bot statistics
- /most-recent-drop Returns the most recent entry from dropHistories

The last two routes require a valid apikey header.
All routes are prefixed by /api/v1
2023-04-05 12:00:46 +02:00
Minz fdf5a4074b Wishlist: Implement Patreon perks for wishlist slots 2023-04-03 17:16:23 +02:00
Minz c48aa8b34f Docs: Add docs to collection command 2023-04-03 15:30:38 +02:00
Minz 3ac10c6e24 Docs: Add docs for collection and view commands 2023-04-03 15:23:14 +02:00
Minz 46f2bc377f Custom: Prevent dropping and burning of custom cards 2023-04-01 15:26:02 +02:00
Minz 35917db0d0 Lib: Update discord.js to 14.8
to include the fix from https://github.com/discordjs/discord.js/pull/9203
2023-04-01 14:28:44 +02:00
Minz 793119dfc9 Wishlist: Fix TypeError on initial wishlist creation
On creation Characters are not included. Since a new wishlist
is empty anyway, we attach an empty array manually.
2023-03-16 00:59:59 +01:00
Minz 7bb02e2d3d Drop: Revert change that limited drops to specific IDs
This was meant to be removed after debugging, oops
2023-03-16 00:37:20 +01:00
Minz 92807bc4db Drop: Add wishlist pings to drops 2023-03-16 00:30:38 +01:00
Minz ce55b1b45a Debug: Add wishlist debug command 2023-03-16 00:30:21 +01:00
Minz 77e09ca5ce Wishlist: Add model and command 2023-03-16 00:29:53 +01:00
Minz b8db85e71c Wishlist: Command boilerplate 2023-03-15 15:31:02 +01:00
Minz b8ffa9fd94 Drop: Fix for patreon perks not applying
same as in 3d1ed01
We also move up the action handler hoping that persisting early helps with
multiple drops happening quickly
2023-03-15 11:23:58 +01:00
Minz 4a9450e82e Register: Add default values for nextDrop/Claim/Daily
Since we changed the datatype to TIMESTAMP we no longer have DB native default values
therefore we supply them on register.
2023-03-14 16:08:04 +01:00
Minz 0f4b23b4ab Fix registration check causing duplicate acks
Registration reminders are now sent as a unique message.
We also no longer perform a registration check on autocomplete requests
2023-03-14 16:06:25 +01:00
Minz 3d1ed01bcb Cooldowns: Fix for patreon perks not applying
if cooldown resets are trigered by a drop.
The tier parameter wasn't passed from within thedrop command.
We should probably move the tier fetch logic into getCooldown.
2023-03-14 10:52:58 +01:00
Minz cecc9c4c9d Claim: Fix wrong user passed to actionHandler 2023-03-13 16:57:40 +01:00
Minz 646ef11abd Cooldown: Use Discord countdown tags for cooldowns
Closes #37
2023-03-13 16:22:07 +01:00
Minz a096d288f6 Drop: Revert permission threshold change
to restore cooldown bypass for admins
2023-03-13 16:07:42 +01:00
Minz 31bb2512ec Debug: Allow patreon debug with optional extUser 2023-03-13 14:41:46 +01:00
Minz 22b712b0f0 CONSTANTS: Update modifiers to match tier descriptions 2023-03-13 14:40:06 +01:00
Minz 3a63d04af5 Daily: Implement daily rewards command 2023-03-13 12:37:44 +01:00
Minz acc3f1319f CONSTANTS: Fix tier 1 claim/drop mix-up 2023-03-13 03:50:07 +01:00
Minz a2883732ca Debug: Fix claim reset key 2023-03-13 03:43:34 +01:00
Minz 147cb1553d Cooldowns: Add support for new Patreon multi drops/pickups
Also include <t:> timestamp for Daily reset date
2023-03-13 03:31:20 +01:00
Minz da78623a05 Drop: Add Patreon muti drop/pickup support 2023-03-13 03:30:56 +01:00
Minz b4dda4b49f UserUtil: Add support for Patreon multi drop/pickup
Instead of setCooldown we now use the actionHandler to
process drops and pickups.
2023-03-13 03:28:35 +01:00
Minz 89448d01cb DB: Rename Bots column pullTimeout to claimTimeout 2023-03-13 03:26:57 +01:00
Minz 397ebde3e5 UserUtil: Add getPatreonPerks helper
and patreon debug command.
2023-03-12 20:35:14 +01:00
Minz 25aa6b50d6 CONST: Fix patreon tier constants
Whale tier (5) had the wrong index and the
object was never actually exported.
2023-03-12 19:14:24 +01:00
Minz cb01327c7d DB: Change patreonTierRoles column to type STRING 2023-03-12 17:41:21 +01:00
Minz 0ea1cfe759 Add patreon tier configs to constants 2023-03-09 23:33:21 +01:00
Minz 0af9038b6e DB: Add and migrate columns in preparation for patreon perks
Renaming nextDrop/Pull required a bit of a hack resulting in
it no longer having a default value.
2023-03-09 23:29:46 +01:00
Minz 4c4a581a03 Collection: Fix username not showing as the title
FIXME: Find a better way to pass usernames.
2023-03-09 13:24:48 +01:00
Minz a12c0a8211 Profile: (Amend) Fix replace/encode order of custom status
Replacement happened before encoding, causing the entire status
string to be encoded, including the SVG tags themselves.
2023-03-09 12:25:48 +01:00
Minz af017bf125 Profile: encode special XML characters in usernames and descriptions
this fixes the problem of profiles not rendering when a user has
special characters such as < or > in their name or status.
We didn't implement proper sanitization considering this method of
profile rendering is going to be obsolete soon.
2023-03-09 12:14:49 +01:00
Minz c93ffee69c Drop: Increase timeout to a minute 2023-03-09 10:05:36 +01:00
Minz bb6f9e7d3f Badges: Add view/list commands and search util 2023-02-27 01:57:26 +01:00
Minz 06575d280f DB: Add models and migration for badges 2023-02-27 01:56:44 +01:00
Minz 1a5e7c1b62 View: Move search code into separate Util module 2023-02-26 18:20:50 +01:00
Minz bb9ffd6b43 View: Allow searching cards by character name 2023-02-26 16:50:39 +01:00
Minz 4e98d744ce Assets: New card cover 2023-02-26 16:24:42 +01:00
Minz 51f8d03a69 Collection: Fix total count when grouping dupes
using array length if group is true. Fixes #47
2023-02-26 14:49:59 +01:00
Minz 1dde3a0a8c DB: Add auto_increment to Characters and Groups
starting at a very high ID because I was too lazy to migrate existing data
as it is referenced in json blobs.
Part of Issue #43
2023-02-25 01:55:27 +01:00
Minz 765e63b90e Generalize labels and options 2023-02-25 00:26:04 +01:00
Minz 50da918be5 NPM: Update to fix sequelize vulnerabilities
Dependabot alerts: 3,4,5,7
2023-02-24 23:51:50 +01:00
Minz 3b67c140af DB: Generalize table and model names 2023-02-24 23:51:32 +01:00
Minz 9661c65b27 Collection: Add options to filter by name,band and quality 2023-01-19 23:57:04 +01:00
Minz 98d4f5c2ac Edit: Use unique interaction IDs for each edit action
Resolves #30 where follow up edits would fail if previous
modals have been canceled/dismissed
2023-01-16 17:11:16 +01:00
Minz 1548ecf73b Collection: Only allow the initator to use the components
Fixes #40
2023-01-16 12:55:28 +01:00
Minz f38b6abe19 View: Omit empty components prop for non-elevated users
Fixes #39
2023-01-12 15:06:56 +01:00
Minz 692904d462 Trade: Add tradehistories table
and create rows at the end of each trade.
Both users traded cards are logged.
2023-01-12 14:43:06 +01:00
Minz 2ef1dfe7a7 Trade: Persist trades in the database
using atomic transactions.
If a card happens to not be owned by the trading user, the entire
trade is being rolled back.
Rollback behaviour is a bit weird though, since we have to rollback
manually even in a managed transaction.
2023-01-02 22:49:46 +01:00