Commit Graph

21 Commits

Author SHA1 Message Date
1a5e7c1b62 View: Move search code into separate Util module 2023-02-26 18:20:50 +01:00
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
78fe0857e8 CardUtils: Add helper to get one-line formatted card info 2022-11-23 17:34:01 +01: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
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
cd3b50bbe2 Profile: Truncate long usernames 2022-09-12 02:33:41 +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
a4e5679d40 Rendering: Save non animated cards as png instead of gif
because gif is bloated and most stuff won't be animated
2022-09-07 22:57:19 +02:00
31b2836a45 Render: Remove default BG color from card stacks 2022-08-29 00:40:41 +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
cf7c2769e3 Drop/Rendering: Move stack sorting from rendering to drop 2022-08-28 21:40:52 +02:00
8419e3f19b Fixed stack rendering 2022-08-28 21:11:46 +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
51e90dee8a Add helper function for bot settings
and fix registration check always returning true
2022-08-19 14:14:24 +02:00
ae60732836 WIP basic card dropping 2022-08-18 19:24:44 +02:00
be2991cd50 Use sequelize 2022-04-17 15:19:12 +02:00
6eccae8721 Core bot components 2022-04-17 14:04:51 +02:00