31 Commits

Author SHA1 Message Date
2f63f172c2 DB: Add fields for custom profile backgrounds 2023-08-07 17:34:19 +02:00
088079cc0e Commands: Add core missing command 2023-06-05 17:56:48 +02:00
4b598cadbf DB: Add fields for ping settings 2023-04-05 15:23:42 +02:00
77e09ca5ce Wishlist: Add model and command 2023-03-16 00:29:53 +01:00
89448d01cb DB: Rename Bots column pullTimeout to claimTimeout 2023-03-13 03:26:57 +01:00
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
06575d280f DB: Add models and migration for badges 2023-02-27 01:56:44 +01:00
3b67c140af DB: Generalize table and model names 2023-02-24 23:51:32 +01:00
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
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
a49a478972 History: Add currency and XP tracking 2022-09-21 17:18:12 +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
826834ebab History: Add record history table 2022-09-14 18:24:10 +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
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
1206251ff6 Profiles: Add user profile model and command 2022-09-05 23:22:36 +02:00
bba51cea2e Models/Cards: Fix errroneous data type of field userId 2022-09-05 22:32:17 +02:00
addd3d9dee Models/User: Add instance method to get counted cards with chartcers 2022-09-05 22:26:59 +02:00
dea943bee4 Drop: Add drop history 2022-08-28 22:19:03 +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
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
05804cb78a Updated models and migrations to new spec 2022-08-17 19:36:47 +02:00
9f568dbbdb Add card and character tables 2022-04-17 19:38:50 +02:00
0419733925 Configure sequelize using config.js and sequelizerc 2022-04-17 16:40:38 +02:00
3dddae6dca Basic User and Guild registration 2022-04-17 16:07:57 +02:00
be2991cd50 Use sequelize 2022-04-17 15:19:12 +02:00