Commit Graph

1470 Commits

Author SHA1 Message Date
Mia
fa4710877a
Wifi: Support claiming submitted giveaways (#8578)
* Wifi: Support claiming submitted giveaways

Requested by Wi-Fi staff.

Those who review before Kris, please just approve - he said he wanted to be able to review. If you review after Kris, merge away.

* Apply suggestions from code review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2021-12-21 23:34:08 -07:00
Mia
f5754ac8fc
Revert previous commit
Meant to PR. Tabbed accidentally.
2021-12-20 11:03:26 -06:00
Mia
d1a5780aec
Helptickets: Support adding custom response buttons to text tickets
Requested by staff.
2021-12-20 11:01:59 -06:00
Mia
72691acb44
Abuse-monitor: Run on FFA 2021-12-20 09:45:11 -06:00
Mia
bf26d1deb4 Wifi: Fix giveaway deletions from pages 2021-12-19 17:56:39 -06:00
Mia
84f1ad3985 Wifi: Adjust giver name formatting on giveaway displays
Requested.
2021-12-19 17:46:46 -06:00
Mia
74e1ca63f0
Wifi: Limit the page tabs non-staff can see (#8577) 2021-12-19 15:08:02 -08:00
Mia
8222c0cf18 Wifi: Fix bug with multiple guesses
Without the parenthesis, the nullish coalescing returned 1 if they had one guess, which is truthy, and so it blocked more guesses.
2021-12-19 10:24:50 -06:00
Mia
75527e3d27 Wifi: Only send one ping for question giveaways
Requested by WiFi staff.
2021-12-19 10:07:07 -06:00
Mia
82fae98024 Wifi: Fix lottery giveaway ending logs
[17:03:19] *Swiffix: prize is showing as "object object"
2021-12-18 17:05:06 -06:00
Annika
d83ce39382 /setodds: Fix Hidden Power 2021-12-18 00:19:09 -08:00
Mia
79fddd6162
Abuse-monitor: Display unclaimed 'ticket' count 2021-12-16 14:41:36 -06:00
Mia
cfb6d4d274 Abuse-monitor: Skip certain message prefixes in display
Requested to reduce clutter.
2021-12-15 20:56:07 -06:00
Mia
e7d57baa1e Abuse-monitor: Don't log to staff room 2021-12-15 20:36:38 -06:00
Mia
e4dfc45dcd Abuse-monitor: Notify staff less often 2021-12-15 20:07:00 -06:00
Mia
e08789002c Abuse-monitor: Notify staff room of active flagged rooms
Modeled after help tickets.
2021-12-15 19:36:12 -06:00
Mia
0ab796e632
Abuse-monitor: Auto-update when rooms are destroyed 2021-12-15 12:07:15 -06:00
Mia
51f782a21e
Abuse-monitor: Fix bug with unclaiming
Other users leaving (who are not the ones who claimed it) should not be marking it as unclaimed.
2021-12-15 08:01:14 -06:00
Mia
7a8ca0f8a5 Abuse-monitor: Give more explicit error messages on /am view 2021-12-14 20:29:55 -06:00
Mia
47fc69351b
Abuse-monitor: Properly handle dark mode 2021-12-14 09:06:39 -06:00
Mia
3fcdc4abe4
Abuse-monitor: Make the review page colourblind-friendly
This highlights names the same way helptickets does, using borrowed code (ideally, we could import it, but importing helptickets imports a series of other plugins, like YouTube, that basically all crash the child process. Making them not do this is uglier than just copying over the code - plus, then the code is more easily modified for future uses.
2021-12-14 09:02:18 -06:00
Mia
273c69bae9 Abuse-monitor: Clarify 'ticket' list buttons 2021-12-13 19:11:25 -06:00
Mia
b8bae6ae75 Abuse-monitor: Adjust permissions 2021-12-13 19:01:37 -06:00
Mia
3971742d97
GitHub: Handle review request removals 2021-12-13 10:51:18 -06:00
Annika
66cc209240 Trivia: Fix crash in merging leaderboard entries 2021-12-12 12:03:07 -08:00
Annika
6c8db6446f Trivia: Show up to 500 users in /trivia rank 2021-12-11 20:47:56 -08:00
Annika
01864d0277 Trivia: Fix leaderboard enum 2021-12-11 20:32:01 -08:00
Annika
57f19246a8 Trivia: Support a cycle-specific leaderboard 2021-12-11 18:13:20 -08:00
Annika
63e7d70e17 Trivia: Fix question order in officials 2021-12-10 19:21:15 -08:00
Mia
4ad7ac15e0 Abuse-monitor: Request more attributes by default 2021-12-10 20:23:27 -06:00
Mia
33c40be879 Abuse-monitor: Make /am test more verbose
Useful for me so I don't have to go into a REPL or /eval access Chat.plugins to see raw scores.
2021-12-10 20:18:25 -06:00
Mia
3638223967 Modlog: Error out if invalid roomids are provided without a prefix
This fixes the issue where roomstaff would use /modlog user and get access denied (since it assumes they were trying to search a room they can't access). Now, if they aren't gstaff, it searches to see if the room exists and allows it if so, sends them the help otherwise. It doesn't do this for gstaff since gstaff can read modlogs of deleted rooms.
2021-12-10 15:27:03 -06:00
Mia
7863aa325e Abuse-monitor: Improve UX
Modlog buttons are added for each of the users, and the main list page will now refocus upon resolving 'tickets'.
2021-12-10 11:34:38 -06:00
Mia
7b22cf96ba Roomfaqs: Escape newlines out of HTML faqs 2021-12-09 10:44:29 -06:00
Mia
35193be6d1
Abuse-monitor: Don't split reasons in /am nojoinpunish 2021-12-08 13:04:52 -06:00
Mia
27ee2cf3fd
Restore abuse-monitor (#8557) 2021-12-08 12:49:03 -06:00
Guangcong Luo
343fb8d356 Remove abuse-monitor
Apparently it was merged with no throttle.
2021-12-06 14:35:04 -05:00
Guangcong Luo
fb8a370cfb Fix incorrect command in /viewfaq
Fixes #8555
2021-12-06 12:28:21 -05:00
Annika
cc54cf88e0 /randombattlesetprobabilities: Fix crash 2021-12-05 17:01:28 -08:00
Mia
ebf288964b Abuse-monitor: Add hyperlink to battles to the view page 2021-12-05 13:31:50 -06:00
Mia
1a37dc0d95 Abuse-monitor: Improve UX
This adjusts display of roomids in 'ticket' pages, as well as adds an explicit command to join / punish, to remove the hack with sending several commands. Also closes the ticket page on resolve.
2021-12-05 12:29:54 -06:00
Mia
07d8bb0530 Abuse-monitor: Don't show battle passwords in page titles 2021-12-04 21:07:47 -06:00
Annika
da01092857 Fix grammar 2021-12-04 18:10:37 -08:00
Mia
6289cce4ea Abuse-monitor: Ignore request timeout errors
Error on our end, not theirs. Shouldn't keep constantly crashing. No notif is needed because slow requests that hit this timeout will log to slowlog.
2021-12-04 15:01:34 -06:00
Mia
901a603fdf Abuse-monitor: Run chatfilter dead last 2021-12-04 14:59:35 -06:00
Mia
e02c849d17 Abuse-monitor: Overhaul display 2021-12-04 14:57:21 -06:00
Mia
430ccb3a18 Abuse-monitor: Allow for setting a 0 minimum score 2021-12-03 16:55:16 -06:00
Mia
43ec4d2671 Abuse-monitor: Sort user displays by number of chat messages 2021-12-03 16:36:00 -06:00
Mia
4778931a5d Abuse-monitor: Fix chat display 2021-12-03 16:32:58 -06:00
Mia
d9784d0ee8 Abuse-monitor: Don't convert categories into IDs 2021-12-03 16:20:48 -06:00