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
0fbf7c8903
fix (seekers): Consider news channels as text.
...
Non-canonical hack to `find_channel` to include `news` types in `text`.
2021-11-07 15:23:14 +02:00
e797b67c3b
fix (rooms): Remove speak permission from room.
2021-11-07 15:09:06 +02:00
db6cc078db
fix (rroles): Off by one error in maximum.
2021-11-07 15:05:05 +02:00
4c21160b31
fix (rroles): Repair setting error reply.
...
Modified `error_reply` utility so `kwargs` are passed to `Embed`.
Added `send_args` kwarg to `error_reply`.
Fixed an rroles issue where `UserInputError` handling would fail.
2021-11-07 15:00:04 +02:00
0e62ebdb2b
fix (rroles): Increase maximum role price.
2021-11-07 14:58:57 +02:00
10f048fabc
fix (rooms): Avoid loading rooms in dead guilds.
2021-11-07 03:16:56 +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
0b7b84556d
fix (renting): Fix expiry execution order.
2021-10-26 11:42:25 +03:00
f18b7c2702
docs (config): Add more documentation.
...
Write `config` command docs.
Extend `config` header and add tutorial link.
Allow moderators to read settings (but not configure them).
Change `config help` to `config info`.
2021-10-25 16:15:43 +03:00
17d6f10345
UI (help): Add flavour and links to help.
2021-10-25 15:00:09 +03:00
cf610ef44d
fix (rent): Handle non-existent objects.
...
Handle room channel being deleted before expiry.
Handle room owner leaving the server before expiry.
2021-10-25 14:37:38 +03:00
5ad4ec5ee1
fix (send cmd): Harden arg parsing.
...
Fix an issue where the send arg parsing would pass non-matching input.
2021-10-24 20:12:28 +03:00
9b8c952e78
fix (rroles): Handle unicode emojis on creation.
...
Fixes a rroles creation issues with pre-existing unicode emojis.
2021-10-24 19:52:06 +03:00
d619b0fe17
fix (rroles): Fix tracker issues.
...
Make `cancel_expiry` arguments consistent with call.
Add initial `guild` ward to the raw reaction events.
2021-10-24 19:39:06 +03:00
c275b8b095
(LionModule): Add custom exception handler.
...
Provide more context when logging errors, and a friendlier message.
2021-10-20 13:26:39 +03:00
42e47bea1a
fix (rooms): Cancel rooms on system shutdown.
...
Fix typos in the `success_response` for `accountability_category`.
Make the `TimeSlot.cancel()` method more robust.
2021-10-20 12:55:36 +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
6a43530142
fix (rooms): Harden turnover to deletion.
...
Fix an issue where `TimeSlot.start()` could propagate an exception.
2021-10-19 20:21:57 +03:00
7c2a6c39a7
fix (Ticket): Make default _revert a no-op.
...
Fixes an issue where pardoning a non-revertable ticket throws an exception.
2021-10-19 19:58:04 +03:00
a52026404b
fix (video): Add missing return in response.
2021-10-19 19:15:48 +03:00
850e44bbc0
UI (accountability): Add images to room summary.
2021-10-19 19:09:16 +03:00
1852710352
Merge branch 'python-rewrite' into reaction_roles
2021-10-19 13:23:16 +03:00
117b424f53
(rroles): Expiry system and small bugfixes.
...
Completed the `duration` reaction role setting implementation.
Improved the `Duration` setting type format.
Moved reaction roles to their own module.
Various small bugfixes.
2021-10-19 13:19:41 +03:00
cfa3c90841
feature (reaction-roles): Configuration command.
...
New monolithic `rroles` configuration command.
Complete logging and setting implementation in RR tracker.
Improve strings in RR settings.
Add special `NEWPAGE` manual section parsed by the help command.
Add `tabulated` method for `ObjectSettings` for easy display.
Add `_parse_create` switch for the `Role` setting type.
2021-10-18 15:28:14 +03:00
ed3ead4f88
(Style): Minor wording changes.
2021-10-11 19:34:06 +03:00
87571d46e0
Merge branch 'utils' into python-rewrite
2021-10-05 11:21:30 +03:00
4523b16d87
fix (guild admin): Fix typo in module import
2021-10-05 11:20:16 +03:00
af26de6603
(accountability): Close rooms before turnover.
...
No longer automatically move members from the previous room.
Add extra member hardening to the turnover process.
2021-10-05 11:19:49 +03:00
9341f3ce8e
Merge branch 'utils' into python-rewrite
2021-10-05 10:23:08 +03:00
97e441f911
optimisation: Populate data caches on startup.
2021-10-05 10:21:24 +03:00
8b6f60d7f3
(guild admin): Autoroles and role persistence.
2021-10-05 00:28:33 +03:00
4a34814a3b
(rooms): Restore room permission on rejoin.
...
Restore current and upcoming accountability room permissions on rejoin.
2021-10-04 19:15:31 +03:00
021182abde
(rooms): Restore permission on guild rejoin.
...
Restore rented owner and member permissions on rejoin.
Adds a `userid` index to `rented_members_users`.
2021-10-04 18:49:26 +03:00
b31a34e725
(guild admin): Add greeting messages.
...
New `SettingType` `Message` for general message settings.
New setting `greeting_message`.
New setting `greeting_channel`.
New setting `starting_funds`.
New setting `returning_message`.
Add a greeting message hook.
Add initial funds on lion creation.
Data migration v3 -> v4.
2021-10-04 18:16:34 +03:00
006f2cfd6d
feature (guild admin): Reaction roles base.
2021-10-04 10:09:07 +03:00
a3b339d1cf
fix (tickets): Add missing await on reply.
2021-10-02 18:38:13 +03:00
e647c67858
Style (config): Add category pagination.
...
Break `config` command up into multiple pages.
Remove `donator_roles` setting.
2021-10-01 12:29:28 +03:00
421c13fb72
(tickets): Small bugfixes.
...
Only allow one interactive ticket display per user per channel.
Fix guild filtering for ticket display and ticket pardon.
2021-10-01 08:21:51 +03:00
6ef6c757fb
fix (studytracker): Cast NULL badgeid correctly.
2021-09-30 23:12:28 +03:00
6a044e566f
(video): Add warn ticket to video watchdog.
2021-09-30 22:28:09 +03:00
2374d3420f
(guild_admin): Only reset study statistics.
2021-09-30 22:14:17 +03:00
eb2e52d15c
Merge branch 'moderation' into python-rewrite
2021-09-30 21:56:40 +03:00
21cafac98a
(guild_admin): statreset command.
...
Added the `statreset` command for resetting study statistics.
Add the `Guild Admin` command group.
2021-09-30 21:55:50 +03:00
3ab3721c99
(moderation): pardon command and warn tickets.
2021-09-30 20:51:49 +03:00
6a2da9c483
(moderation): tickets command and note ticket.
...
Add new `tickets` command for viewing moderation tickets.
Add `Note` ticket implementation, with command.
Add `offer_delete` context utility.
Add `guild_moderator` command ward.
2021-09-29 23:26:14 +03:00