Commit Graph

37 Commits

Author SHA1 Message Date
6aaa2377a4 refactor: Split stats module from study. 2021-12-29 20:19:35 +02:00
276886a3a7 sharding (general): Add launch data filters.
Filter cached reaction role messages by shardid.
Filter expiring rented room by shardid.
Filter scanned study badges by shardid.
Filter resumed study sessions by shardid.
Filter resumed workouts by shardid.

Fix a spacing issue in the log printer.
2021-12-22 17:26:49 +02:00
1c05d7a880 sharding (blacklists): Blacklist shard support.
Moved the `user_blacklist` and `guild_blacklist` to a client TTL cache.
2021-12-22 13:07:20 +02:00
8208f601d6 (stats): Remove dynamic field-reordering. 2021-12-22 08:18:40 +02:00
e8547f9f4b fix (stats): Fix misnamed variable. 2021-12-15 14:36:09 +02:00
d2a5eed245 Merge branch 'feature-session-tracker' into staging 2021-12-08 12:02:17 +02:00
f18af33fb6 fix (sessions): Recognise accountability sessions. 2021-12-08 11:44:35 +02:00
9d0fd93822 fix (stats): Fix time formatting issue. 2021-12-08 11:44:15 +02:00
d95faed02b fix (stats): Repair some formatting issues. 2021-12-07 11:02:40 +02:00
971446ffb5 (stats): Rewrite to include session data.
Complete `stats` command rewrite to include session data.
Added `get_member_rank` query to get accurate time and coin ranks.
2021-12-06 20:50:32 +02:00
179b6ebf4e (leaderboards): Update to support sessions.
Use `member_totals` to generate leaderboards instead of `members`.
Fix typo in data coin conversion.
2021-12-04 11:36:52 +02:00
bb181d9039 (badges): Update to account for session tracker.
Include current sessions in new badge scans.
Remove the voice update badge hook.
Account for current session in the current badge view.
2021-12-04 11:13:26 +02:00
144ccf9e81 (Lion): Update to account for current session.
Remove `time` pending and syncing logic.
Update `time` and `coins` to account for current session.
Add `Session.duration` for current session duration.
Add `Session.coins_earned` for current session coins.
2021-12-04 10:24:11 +02:00
cffdfb693b (sessions): Add guild join and leave hooks. 2021-12-02 13:16:36 +02:00
fe1cd85511 (sessions): Add UI for daily_study_cap. 2021-12-02 12:51:14 +02:00
734436e2a6 (sessions): Add daily_study_cap system. 2021-12-02 11:48:04 +02:00
ac71c4da9b (sessions): Add study_time_since function.
New `study_time_since` database function from session history.
Add `Lion.timezone`.
Add `Lion.day_start`.
Add `Lion.studied_today`.
Made `Table.queries` an instance variable.
Renamed the session channel types.
2021-11-29 13:33:21 +02:00
9c8dfd6a3a (sessions): Complete launch and init pathway. 2021-11-29 13:31:37 +02:00
2cf66ab600 (stats_cmd): Allow execution before ready. 2021-11-07 16:31:55 +02:00
65fcfe0289 feature (sessions): Core session tracker.
Base `Session` system with event trackers.
2021-10-31 20:15:32 +02:00
5ea7d06dae refactor: Update study module structure.
Prepare `study` module for session and timer systems.
Move regular sync to the studybadge loop.
2021-10-26 17:35:16 +03:00
91454b35cc fix (studybadges): Detect level duplicates.
Detect and complain about duplications in provided studybadge levels.
2021-10-19 21:26:03 +03:00
97e441f911 optimisation: Populate data caches on startup. 2021-10-05 10:21:24 +03:00
6ef6c757fb fix (studytracker): Cast NULL badgeid correctly. 2021-09-30 23:12:28 +03:00
9ae0de034f (Sysadmin): Add guild and user blacklist.
v2 -> v3 data migration for the blacklist tables.
Added blacklists and blacklist commands
Added bot admin level to help groups.
2021-09-28 20:54:22 +03:00
5ca10d5f74 fix (studybadges): Fix empty badge removal error. 2021-09-27 21:43:42 +03:00
f17a2d839a fix (studybadges): Fix cache refresh on update. 2021-09-27 21:31:44 +03:00
ad773c95d3 fix (Trackers): Ignore bots for workout and study. 2021-09-20 10:01:26 +03:00
1a8a50538d fix (Top): Handle empty exclude list. 2021-09-19 13:42:40 +03:00
d39ec3153a (Docs): Update command help categories. 2021-09-19 10:30:25 +03:00
73d210db31 (stats cmd): Fixed rank display.
Added `member_ranks` data view for getting time and coin ranks from db.
2021-09-13 09:28:12 +03:00
912409ec3e (Leaderboards): Filter out 0 entries. 2021-09-13 09:13:35 +03:00
a9d5f8f0e1 (Study badges): Improved UI.
Handle arguments to `remove`.
Offer to delete roles where appropriate.
Event log badge deletions.
Fire data and role updates immediately on badge removal.
Improve parser.
2021-09-12 17:02:41 +03:00
a316775cad Add module. 2021-09-12 11:37:07 +03:00
0183b63c55 Data system refactor and core redesign for public.
Redesigned data and core systems to be public-capable.
2021-09-12 11:04:49 +03:00
459a728968 Core user data and leaderboard commands.
Added flexibility to data `update_where`.
Added interactive utils, with improved pager.
Added user data table, with caching and transactional interface.
Added `topcoins` command to `Economy`
Added `top` command to `Study`
2021-08-26 22:34:46 +03:00
87f16b6a37 Initial Commit: Skeleton structure. 2021-08-25 14:48:20 +03:00