Commit Graph

206 Commits

Author SHA1 Message Date
5be326d56a Added permission levels to all commands 2022-09-29 11:23:15 +02:00
07b48087b4 Help: Add very basic help command 2022-09-29 11:19:16 +02:00
cf159c43bc Docker: Make DB port changeable via .env 2022-09-26 16:21:43 +02:00
e72b098dab Docker: Always run migrations on compose up 2022-09-26 16:18:42 +02:00
b5d2b68294 Stats/View: Add wallet stats and shiny emote to card views 2022-09-26 16:15:20 +02:00
16bb46403b Burn: Added card burning for notes and gems 2022-09-26 16:09:23 +02:00
bbbcaaaf29 User/Debug/Profile: Add primary and secondary currency 2022-09-26 13:15:40 +02:00
d8905a279a Drop: Added icons if drop contains FPs or shiny cards as well as the droppers name 2022-09-26 12:22:53 +02:00
a49a478972 History: Add currency and XP tracking 2022-09-21 17:18:12 +02:00
dcd05322ca Merge pull request #31 from JanGross/dependabot/npm_and_yarn/moment-timezone-0.5.37
Bump moment-timezone from 0.5.34 to 0.5.37
2022-09-21 14:19:56 +02:00
dependabot[bot]
9054649d0c Bump moment-timezone from 0.5.34 to 0.5.37
Bumps [moment-timezone](https://github.com/moment/moment-timezone) from 0.5.34 to 0.5.37.
- [Release notes](https://github.com/moment/moment-timezone/releases)
- [Changelog](https://github.com/moment/moment-timezone/blob/develop/changelog.md)
- [Commits](https://github.com/moment/moment-timezone/compare/0.5.34...0.5.37)

---
updated-dependencies:
- dependency-name: moment-timezone
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-21 12:18:47 +00:00
c8fb87dc70 View: Handle empty or invalid card IDs. Fixes #24 2022-09-21 13:41:56 +02:00
dcb7e334e2 History: Add details to drop history and split by type
that being 0 for drops and 1 for claims.
Fixes #16
2022-09-21 13:35:43 +02:00
f021234e45 Profile: Add initial default customStatus and allow empty values
Fixes #20
2022-09-21 12:49:21 +02:00
deee1bf0c4 Collection: Fix empty collection message not showing up
Fixes #4
2022-09-21 12:29:12 +02:00
73fb84c33d Debug: Defer all debug replies and lock clear_cards in production 2022-09-21 12:22:34 +02:00
767f5bb761 Stats: Use sourced constants for quality names 2022-09-21 12:13:35 +02:00
4d97215891 Drop: Fix cooldown formatting (fixes #15)
Formatted cooldown strings are now properly pluralized
trimmed for zero values and also include seconds.
2022-09-21 11:51:58 +02:00
f0a0bef7e9 Drop: Always defer drop replies 2022-09-21 11:50:45 +02:00
73a2df6e74 Drop: Select quality of cards based on drop rates 2022-09-21 11:17:11 +02:00
fc45908419 Add maintenance mode 2022-09-19 09:02:42 +02:00
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
826834ebab History: Add record history table 2022-09-14 18:24:10 +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
d8c18f8b01 User: Fix wrong rounding on level calculation
we have to floor it, otherwise we're always one level ahead
2022-09-12 22:22:15 +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
9106192fd5 User: Fix type mismatch causing xp passed as a string to be appended
instead of being added as an increment.
2022-09-12 03:58:51 +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
b34c3e3f09 Git: Exclude cards and imports, add gitkeep for essentiqal cache folders 2022-09-12 00:41:35 +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
ef19697346 Docker: Add imagemagick dependency 2022-09-11 22:31:25 +02:00
28dcb62d48 Add missing card and profile template assets 2022-09-11 19:11:47 +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