Add global role synchronization for Discord with configurable interval
This commit introduces a new feature for global role synchronization in Discord, allowing for periodic reconciliation of managed roles. A new environment variable, `DISCORD_GLOBAL_SYNC_INTERVAL`, has been added to configure the synchronization interval, defaulting to 5 minutes. The `RoleWorker` has been updated to schedule global sync jobs, ensuring that missing managed roles are restored and extra assignments are removed without affecting unrelated server roles. Database schema changes support the new synchronization logic, and tests have been added to validate the functionality of the global reconciliation process.
This commit is contained in:
@@ -84,6 +84,7 @@
|
||||
- обновление анонса, напоминания, публикация составов и результатов;
|
||||
- [x] идемпотентная синхронизация временных Discord team/captain и Tank/Damage/Support ролей;
|
||||
- [x] отдельные member-list группы для команд и зарегистрированных участников;
|
||||
- [x] пятиминутная глобальная сверка и восстановление managed Discord-ролей;
|
||||
- создание и очистка временных командных голосовых каналов;
|
||||
- импорт данных и резервное копирование.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user