Commit Graph

99 Commits

Author SHA1 Message Date
0afedc86e5 View/Edit: Add option to direct edit from character views 2022-09-18 01:21:10 +02:00
60f4c51353 View: Add mixed view with autocomplete
for cards and characters
2022-09-18 00:49:30 +02:00
f211f4976f Cleanup some unused debug commands and arguments 2022-09-16 23:08:50 +02:00
a55ce1b5ff Edit: Fix path sanitization.
Spaces are being replaced with underscores
2022-09-15 22:23:30 +02:00
820ed99021 Edit: Add command to edit existing records.
This currently requires global admin permissions.
Each edit gets persisted in the history table.
2022-09-14 18:25:31 +02:00
1d4ec09bf8 Collection: Add duplicate grouping 2022-09-14 14:02:39 +02:00
83947eeafd Drop: Hightlight first prints and shiny cards in claim messages 2022-09-14 09:27:25 +02:00
055be119cc Profile: Show rendering gif placeholder instead of thinking text
while the profile is being rendered in the background.
2022-09-13 00:28:14 +02:00
54aee7624b Profile: Use sharp to prerender the profile background
including the user image. Also introduces axios as a dependency
2022-09-13 00:18:30 +02:00
494f574048 Profile: Fix call to refactored getLevel function
it is now user.level().currentLevel
2022-09-12 23:03:30 +02:00
af3f1237c6 Stats: Add stats command to show a users data
like cards owned, level progression and date registered
2022-09-12 22:18:53 +02:00
465f1f3221 Profile: Handle uninitialized customStatus rendering 2022-09-12 20:51:56 +02:00
7786c84ea7 Profile: Render custom status on profile images
A new line is added after each whitespace following each 40th+ character
2022-09-12 14:54:18 +02:00
c5fddd12cf Profile: Allow editing of customStatus using the editprofile command
Editprofile itself now shows buttons to select different subcommands.
2022-09-12 13:39:06 +02:00
5ea33b21a0 Profile: Fix discordUser object being of type member if we view our own profile 2022-09-12 10:31:46 +02:00
dc9502057d Profile: Add parameter to view some else's profile 2022-09-12 04:12:07 +02:00
292cd00613 Debug: Add command to alter a users experience
Also added the option to pass a user mention instead
of an id as the extUser parameter.
2022-09-12 04:03:04 +02:00
ed7096fac0 User: Add experience / levels
Each drop and claim hands out 10 and 5 xp respectively.
The profile then renders the users current level based on
the formula 0.5 * sqrt(exp)
2022-09-12 03:37:45 +02:00
fb1f4b346e Profile: Update profile template 2022-09-12 03:12:24 +02:00
cd3b50bbe2 Profile: Truncate long usernames 2022-09-12 02:33:41 +02:00
d531a3a2d3 Profile: Handle unassigned showcase slots
during profile rendering
2022-09-12 00:34:48 +02:00
2b682fc074 Profile: Composite profile using imagemagick
by spawning an external process. Very slow but it works.
2022-09-11 23:50:43 +02:00
c537c1c9e6 Debug: Add optional userid parameter
Implemented for reset_cd to allow resetting other users cooldowns
2022-09-09 11:36:24 +02:00
ff879d179d View: Add view embed 2022-09-08 17:30:27 +02:00
6ce583c8fb Drop: Make cards claimable by other users
Cards couldn't be claimed by users other than the dropper because we
were using the wrong user and permissionlevel object from the upper scrope
Fixes #12
2022-09-08 13:30:04 +02:00
d8fb5d0a62 Drop: Show cooldown times in minutes instead of ms 2022-09-08 13:30:01 +02:00
fb5faf727e Drop: Use random sorting to pick dropped characters
this fixes the problem of choosing disabled cards or IDs which
are not assigned to any character. Fixes #7
2022-09-07 20:01:28 +02:00
201417c8ba SetEnabled: Add SetEnabled command for Bands
which optionally includes child Characters
2022-09-07 19:42:01 +02:00
307172762a [WIP] Setactive command 2022-09-07 18:38:01 +02:00
f68be35fcf Profile: Add editprofile command with basic showcase modal
New values are persisted into the database
2022-09-07 00:25:42 +02:00
1206251ff6 Profiles: Add user profile model and command 2022-09-05 23:22:36 +02:00
91e038d88e Collection: Disable prev or next buttons to avoid over/underflow
during collection pagination.
2022-09-04 20:45:47 +02:00
37414bdf7f Collection: Implement paginated embed
Cards are listed in a paginated embed showing 8 cards per page
2022-09-01 02:28:38 +02:00
e1f1ad79e8 Drop: Update claim messages to show the character name once cards are revealed 2022-08-31 23:57:06 +02:00
de326e3cd5 Drop/Render: Fix button sorting issue
Buttons would not correspond to the correct card
in a rendered card-stack.
2022-08-28 23:27:23 +02:00
566a9c5818 Drop/Render: Add card quality
Assign random card quality on drop
Render different border colors based on quality
2022-08-28 22:52:52 +02:00
dea943bee4 Drop: Add drop history 2022-08-28 22:19:03 +02:00
cf7c2769e3 Drop/Rendering: Move stack sorting from rendering to drop 2022-08-28 21:40:52 +02:00
6c781785c3 StackRendering: Only reveal cards once the drop expired 2022-08-28 21:31:15 +02:00
69cdc54c80 WIP: Card compositing 2022-08-25 23:18:01 +02:00
3f53e33598 WIP Card rendering
Render card stacks on drops
Unclaimed cards are hidden, when expired they are shown as grayscale
2022-08-20 03:35:36 +02:00
eb4ffae173 Add command permission checks
Level 0: Every user - Public commands
Level 1: Guild owners or members with respective admin role - Elevated guild commands
Level 2: Global admins - Every command including levels below
2022-08-19 19:18:01 +02:00
e21fc57f22 Add drop and pull cooldowns 2022-08-19 14:41:48 +02:00
ae60732836 WIP basic card dropping 2022-08-18 19:24:44 +02:00
317230c9c3 Upgrade discord.js from v13 to v14 2022-08-18 11:26:51 +02:00
05804cb78a Updated models and migrations to new spec 2022-08-17 19:36:47 +02:00
cfc9e2ba6b Add card dropping and collection command 2022-04-17 19:39:03 +02:00
3dddae6dca Basic User and Guild registration 2022-04-17 16:07:57 +02:00
6eccae8721 Core bot components 2022-04-17 14:04:51 +02:00