Commit Graph

1635 Commits

Author SHA1 Message Date
Mia
ef33618e03
Modlog-viewer: Add a table for punishments sorted by IP
Requested by staff.
2022-02-09 11:01:50 -06:00
Mia
b1c75c1a1b Helptickets: Default to current ticket for /ht close 2022-02-08 20:42:55 -06:00
Mia
beeff7bdff
Add an option to set a vote cap on polls
https://www.smogon.com/forums/threads/option-for-polls-to-automatically-end-after-a-certain-number-of-total-votes-has-been-reached.3697348/#post-9118013
2022-02-08 09:19:11 -06:00
Kris Johnson
49fa3edda3
Quotes: Make /viewquote broadcastable 2022-02-06 17:45:26 -07:00
Annika
640cdcab21 Fix bug in /trivia edit 2022-02-04 23:09:42 -05:00
Annika
eef1d718e5 Trivia: Don't select First as a random mode 2022-02-04 18:07:44 -08:00
Kris Johnson
f5983d20a5 Datasearch: Fix searching for fully evolved Pokemon 2022-02-01 18:28:18 -07:00
pyuk-bot
32892af464
Fix National Dex Eviolite checks (#8650) 2022-02-01 13:51:04 -05:00
Mia
bbb82ffcf3
Abuse-monitor: Sort recommendations by user (#8643) 2022-01-28 18:20:47 -08:00
Mia
1fdcedca4f Wifi: Restore accidentally removed linebreak 2022-01-24 16:24:42 -06:00
Mia
8f07ae28e1 Wifi: Restore old BDSP giveaway color
Requested.
2022-01-24 16:22:17 -06:00
Mia
951e23ebd3
Abuse-monitor: Add a UI for adding punishments 2022-01-24 15:13:36 -06:00
Mia
e5a0c2e665
Abuse-monitor: Add weeklock to available punishments 2022-01-24 10:12:36 -06:00
Mia
b413b6bc4f Abuse-monitor: Refactor staffNotified to an array 2022-01-23 20:50:13 -06:00
Mia
ca9797fd7e Abuse-monitor: Fix bug with MAXIMUM thresholds 2022-01-23 19:59:26 -06:00
Mia
5d164453ea
Abuse-monitor: Support recommending punishments (#8588) 2022-01-23 17:56:47 -08:00
Mia
cfeb1303bb
Chat: Properly typecheck Chat.runHandlers arguments (#8612) 2022-01-23 17:55:19 -08:00
Kris Johnson
f61b4a1ad4
Wi-Fi: Convert to TSX (#8620) 2022-01-23 17:51:18 -08:00
Mia
bd256ea5f9 Abuse-monitor: Fix some leftover html 2022-01-21 20:12:29 -06:00
Mia
b4e41ab8fb Abuse-monitor: Display stats without dead tickets
Gets in the way.
2022-01-21 17:17:37 -06:00
Mia
8bef5bee33 Abuse-monitor: Track dead tickets 2022-01-20 13:11:51 -06:00
Mia
4a85f0fb0f Helptickets: Don't activate tickets for 1-2 char messages 2022-01-19 20:38:03 -06:00
Mia
99657a474c
Abuse-monitor: Properly handle battle renames 2022-01-19 09:25:33 -06:00
Mia
653d3ba00d
Chatlog: Fix older results buttons 2022-01-19 08:46:42 -06:00
Mia
87262e5961 Quotes: Add a command to view quotes by index
Per https://www.smogon.com/forums/threads/quote-suggestions.3696375/.
2022-01-17 15:58:34 -06:00
Mia
ce5af83714 Abuse-monitor: Always prioritize flagged user in users list 2022-01-17 11:33:55 -06:00
Mia
9cf0eb32f3 Wifi: Handle sprites for mons with formes accurately 2022-01-16 15:06:49 -06:00
Mia
c4aa6a7750 Abuse-monitor: Support backing up settings 2022-01-15 16:45:03 -06:00
Annika
5be146e5f6 /trivia edit: Fix HTML escaping 2022-01-15 14:21:09 -08:00
Annika
0ddf811763 Trivia: Remove debug print 2022-01-14 20:35:31 -08:00
Annika
17806788bf Trivia: Add editing command 2022-01-14 20:32:45 -08:00
Mia
9da2cb7af4
Abuse-monitor: Use exact names in ticket display
Requested.
2022-01-13 11:00:28 -06:00
Mia
536f1148d5
Abuse-monitor: Add a command to help auditing misflags 2022-01-13 10:28:58 -06:00
Mia
ce20ad8255
Abuse-monitor: Overhaul settings interface 2022-01-11 14:17:55 -06:00
Kris Johnson
070d1a6ddb
BW PU/ZU: Add proper tiering (#8621) 2022-01-11 10:43:02 -05:00
Annika
d189206088 Trivia: Update help to reflect new ladder length 2022-01-10 11:46:26 -08:00
Hisuian Zoroark
fa89d9da9a
Spotlights: Don't give an image parameter in source if no image was used (#8615) 2022-01-09 14:46:25 -08:00
Mia
c7ddd49e0e
Revert "Wi-Fi: Convert to TSX (#8581)" (#8618)
This reverts commit 2af0ae99c6.
2022-01-08 13:41:43 -05:00
Mia
797f8be2f7 Abuse-monitor: Default threshold increment to null 2022-01-08 10:37:18 -06:00
Kris Johnson
2af0ae99c6
Wi-Fi: Convert to TSX (#8581) 2022-01-06 19:58:33 -08:00
Mia
60291ebecc
Abuse-monitor: Make the threshold increment optional 2022-01-06 09:56:52 -06:00
Mia
4ecef7c840
Abuse-monitor: Support scaling thresholds per-room (#8606) 2022-01-05 19:10:15 -08:00
Annika
cb1104afc5 Trivia: Update help 2022-01-05 16:53:11 -08:00
Annika
a412bd8d88 Trivia: Display /trivia rank as a table 2022-01-05 16:51:09 -08:00
Annika
ad77c5d9ef Trivia: Rename leaderboard commands 2022-01-05 15:45:18 -08:00
Mia
677ed08d16 Fix crash 2022-01-04 20:48:33 -06:00
Mia
451afe26e0 Fix checks
Also fixes this functionality as a whole.
2022-01-04 20:41:29 -06:00
Mia
a5de947b8a Helptickets: Support viewing responses for a specific ticket type
Requested since the clutter on the unfiltered command gets to be a lot.
2022-01-04 16:27:44 -06:00
Mia
50d3e4a59e Abuse-monitor: Fix setting scores to maximum 2022-01-02 19:13:59 -06:00
Mia
ae34349ece Abuse-monitor: Give a more detailed stat breakdown 2022-01-02 18:50:22 -06:00
Annika
686515f951 /helpticket removeresponse: Fix help 2021-12-30 17:51:33 -08:00
Mia
51ce8737f8
Helptickets: Support adding custom response buttons to text tickets (#8579)
Requested by staff.
2021-12-30 17:42:39 -08:00
Mia
0be9ac7ec6 Abuse-monitor: Validate score inputs properlyn 2021-12-30 17:11:35 -06:00
Mia
40f59a9e71 Abuse-monitor: Fix setting scores to maximum 2021-12-30 14:53:21 -06:00
Mia
57911c5ed8 Abuse-monitor: Properly redisplay to staff after deleting expired tickets 2021-12-30 14:52:48 -06:00
FeluciaPS
cf572aff45
Extend /repeat multiline pattern for all commands (#8593) 2021-12-29 21:18:57 -08:00
FeluciaPS
9ab15060cf
Use |uhtml| for repeats to prevent flooding (#8594) 2021-12-29 21:17:52 -08:00
Mia
f50d634660 Wifi: Fix stored giveaway start buttons 2021-12-27 13:46:49 -06:00
Mia
0db8fc33a7 Wifi: Allow staff to store giveaways for other users 2021-12-27 13:19:37 -06:00
Mia
6e03fa3042 Wifi: Fix deleting stored giveaways 2021-12-26 13:37:58 -06:00
Mia
8267564fd8 Abuse-monitor: Whitelist forcerenaming as a nojoinpunish command
Requested by staff.
2021-12-25 19:23:59 -06:00
Mia
0a0bbe795c Abuse-monitor: Fix resolving tickets 2021-12-23 19:44:19 -06:00
Mia
d62abda98c
Abuse-monitor: Fix resolving tickets 2021-12-23 19:24:05 -06:00
Mia
cee8f5a12c
Abuse-monitor: Support tracking stats (#8575) 2021-12-23 15:56:25 -08:00
Mia
8047dcb5d3 Abuse-monitor: Don't default to staff room when using /am nojoinpunish
Also bumps the expire timer for the room on 'ticket' claim, so that it doesn't expire in the middle of review.
2021-12-22 11:12:58 -06:00
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
Mia
8d24dc2eac
Abuse-Monitor: Increase request timeout 2021-12-03 11:24:10 -06:00
Mia
dd0c0176aa
Abuse-Monitor: Ignore commands 2021-12-03 10:54:01 -06:00
Mia
fbeb719fea
Abuse-Monitor: Decrease cache size 2021-12-03 09:13:16 -06:00
Mia
3a5e901444
Abuse-Monitor: Fix grammatical error 2021-12-03 09:03:19 -06:00
Mia
ec7938612b
Abuse-Monitor: Run filter last
This is to avoid interference with other chatfilters.
2021-12-03 09:02:24 -06:00
Mia
956bd57e60
Abuse-Monitor: Better label some displays 2021-12-03 08:31:30 -06:00
Mia
e42cbc7505
Abuse-Monitor: Fix /help 2021-12-03 08:28:16 -06:00
Mia
fb61bcd17b
Abuse-Monitor: Fix /am toggle messages 2021-12-03 08:27:36 -06:00
Mia
9318a83e9a
Abuse-Monitor: Use parseFloat() in /am editmin 2021-12-03 08:23:37 -06:00
Mia
ab62e1af43
Add a plugin to use Perspective for monitoring battles (#8541) 2021-12-03 07:52:26 -06:00
Mia
651dcb1bd2
Helptickets: Adjust namecolors to be dark-mode friendly 2021-12-02 08:03:19 -06:00
Kris Johnson
4fb21c9289 Fix bugs with BDSP CAP 2021-12-02 00:06:36 -07:00
Mia
906a037dcd Helptickets: Make reported usernames colorblind-friendly 2021-11-30 20:17:42 -06:00
Mia
a19968ff04 Tickets: Move IP-Appeal data collection to run on submit 2021-11-30 15:06:26 -06:00
Mia
1ad100926e Helptickets: Fix 'punish opponent' display 2021-11-30 14:54:49 -06:00
Annika
45fd60d864 Random Battle: Allow calculating set probabilities
Requested by randbats staff.
2021-11-29 19:34:44 -08:00
Annika
ced5e7fc81 Fixes for private code 2021-11-26 16:16:48 -08:00
pyuk-bot
5f60e3d247
Use the room's default dex for /ds and /ms (#8543) 2021-11-25 23:20:32 -08:00
Annika
93661e1d53 /randbats: Fully support BDSP 2021-11-23 20:22:54 -08:00
Mia
52d826f8f1
Searchlog: Fix "View more" buttons
These had the old argument syntax.
2021-11-20 06:14:53 -06:00
Kris Johnson
ff4b7bed31
Add BDSP data and formats (#8530) 2021-11-18 18:00:10 -06:00
Mia
b2c15106f3 Helptickets: Ignore report targets if a user reports themselves 2021-11-16 12:56:05 -06:00
Mia
784acab74c Helptickets: Fix extra escaping in /ht logs 2021-11-16 08:40:32 -06:00
Guangcong Luo
afeda0ccec Sample-teams: Suppress crashes from outdated rooms 2021-11-15 19:12:01 -05:00
Mia
7c4a6a1917 Helptickets: Improve detection of reported opponents in battle tickets 2021-11-14 17:58:49 -06:00
Guangcong Luo
48df7f19bf Refactor re-saving replays at battle end
Previously, if saving a replay failed the first time around, it's
not re-saved at battle end. Commit 028abd6377 fixes that.

This commit just rewrites the implementation to be much less redundant.
2021-11-13 13:54:05 -05:00
Guangcong Luo
2f0b1bec59 Log crashes when GitHub hook fails
(Also rewrite the loader to be less redundant.)
2021-11-13 13:45:05 -05:00
Mia
530138b9e5 GitHub: Respect PS loglevel unless set explicitly not to 2021-11-13 01:01:51 -06:00
Mia
f608496938
Support JSX in HTML pages (#8523)
Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2021-11-12 22:06:26 -08:00
Mia
46bc0f312c Modlog-viewer: Remove references to 'any' 2021-11-12 23:20:47 -06:00
Mia
028abd6377 Helptickets: Ensure reported battles have replays saved upon ending
This is relevant since future staff may want the full log, and we don't want cases where only half the replay is saved.
2021-11-12 20:31:24 -06:00
Mia
5dff5de194 Helptickets: Properly ban a ticketbanned user's previousIDs 2021-11-12 11:27:10 -06:00
Mia
8aadf432ab Usersearch: Don't make a table if no online users are found 2021-11-12 08:13:46 -06:00
Mia
48aaec0cd3 Roomfaqs: Allow people with the addfaq permission to view sources
the 'rfaq' perm is inconsistent: /addfaq perms make more sense and are what we check for the source in the page.
2021-11-11 10:51:16 -06:00
Kris Johnson
ffa50344b2
Wi-Fi: Fix index validation for /ga delete 2021-11-10 20:31:23 -07:00