Spaces:
Runtime error
Runtime error
Update storage.js
Browse files- storage.js +5 -2
storage.js
CHANGED
|
@@ -54,7 +54,8 @@ class StorageManager {
|
|
| 54 |
settings: {}, // Global bot settings
|
| 55 |
broadcasts: [], // Broadcast history
|
| 56 |
scheduled_matches: [], // Scheduled league matches
|
| 57 |
-
cleanup_queue: [] // Messages to be deleted
|
|
|
|
| 58 |
};
|
| 59 |
this.loadAll();
|
| 60 |
}
|
|
@@ -92,6 +93,7 @@ class StorageManager {
|
|
| 92 |
// Load Reminders & Cleanup
|
| 93 |
this.data.scheduled_matches = state.scheduled_matches || [];
|
| 94 |
this.data.cleanup_queue = state.cleanup_queue || [];
|
|
|
|
| 95 |
|
| 96 |
console.log('[STORAGE] Data loaded successfully');
|
| 97 |
}
|
|
@@ -129,7 +131,8 @@ class StorageManager {
|
|
| 129 |
processed: Array.from(this.data.processed_messages),
|
| 130 |
settings: this.data.settings,
|
| 131 |
scheduled_matches: this.data.scheduled_matches,
|
| 132 |
-
cleanup_queue: this.data.cleanup_queue
|
|
|
|
| 133 |
});
|
| 134 |
}
|
| 135 |
|
|
|
|
| 54 |
settings: {}, // Global bot settings
|
| 55 |
broadcasts: [], // Broadcast history
|
| 56 |
scheduled_matches: [], // Scheduled league matches
|
| 57 |
+
cleanup_queue: [], // Messages to be deleted
|
| 58 |
+
onboarded: {} // GuildId -> Set of UserIds who got the welcome DM
|
| 59 |
};
|
| 60 |
this.loadAll();
|
| 61 |
}
|
|
|
|
| 93 |
// Load Reminders & Cleanup
|
| 94 |
this.data.scheduled_matches = state.scheduled_matches || [];
|
| 95 |
this.data.cleanup_queue = state.cleanup_queue || [];
|
| 96 |
+
this.data.onboarded = state.onboarded || {};
|
| 97 |
|
| 98 |
console.log('[STORAGE] Data loaded successfully');
|
| 99 |
}
|
|
|
|
| 131 |
processed: Array.from(this.data.processed_messages),
|
| 132 |
settings: this.data.settings,
|
| 133 |
scheduled_matches: this.data.scheduled_matches,
|
| 134 |
+
cleanup_queue: this.data.cleanup_queue,
|
| 135 |
+
onboarded: this.data.onboarded
|
| 136 |
});
|
| 137 |
}
|
| 138 |
|