mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-17 14:25:27 +09:00
Address review on the exp_reports watch list
Save both datastores on the save hook so autosave covers them, the controller also runs it at shutdown. Watch list names are case insensitive, matching Factorio and Clusterio users. The new exp_reports.announce_to_all_instances config, on by default, can limit the join message to the instance the player joined. The Discord embed lists the three newest unread reports and counts the rest in the footer, since Discord rejects embeds with more than 25 fields. Both tables now sort newest first by default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
44ae3a5f0e
commit
38fe2ed62a
7 files changed
+92
-22
No files matched your search
@@ -89,8 +89,9 @@ export class WatchListRecord {
|
||||
public isDeleted: boolean = false,
|
||||
) {}
|
||||
|
||||
/** Player names are case insensitive in Factorio and Clusterio. */
|
||||
get id() {
|
||||
return this.playerName;
|
||||
return this.playerName.toLowerCase();
|
||||
}
|
||||
|
||||
static jsonSchema = Type.Object({
|
||||
@@ -400,10 +401,12 @@ export class WatchListRemoveRequest {
|
||||
|
||||
/**
|
||||
* A watched player joined an instance, sent to every instance so admins
|
||||
* everywhere see it.
|
||||
* everywhere see it, or only to the one they joined when
|
||||
* exp_reports.announce_to_all_instances is off.
|
||||
*
|
||||
* The player is watched because of their watch list entry, their unread
|
||||
* reports when exp_reports.watch_unread_reports is set, or both.
|
||||
* reports when exp_reports.watch_unread_reports is set, or both. Unread
|
||||
* reports are newest first.
|
||||
*/
|
||||
export class WatchedPlayerJoinedEvent {
|
||||
declare ["constructor"]: typeof WatchedPlayerJoinedEvent;
|
||||
|
||||
Reference in new issue
Block a user