mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-08-29 07:08:50 +00:00
Load Draupnir protections in the DraupnirProtectedRoomsSet.
This commit is contained in:
@@ -28,6 +28,7 @@ limitations under the License.
|
||||
import { ActionResult, MJOLNIR_PROTECTED_ROOMS_EVENT_TYPE, MJOLNIR_WATCHED_POLICY_ROOMS_EVENT_TYPE, MatrixRoomID, MatrixRoomReference, MjolnirEnabledProtectionsEvent, MjolnirEnabledProtectionsEventType, MjolnirPolicyRoomsConfig, MjolnirProtectedRoomsConfig, MjolnirProtectedRoomsEvent, MjolnirProtectionSettingsEventType, MjolnirProtectionsConfig, MjolnirWatchedPolicyRoomsEvent, Ok, PolicyListConfig, PolicyRoomManager, ProtectedRoomsConfig, ProtectedRoomsSet, ProtectionsConfig, RoomMembershipManager, RoomStateManager, SetMembership, SetRoomState, StandardProtectedRoomsSet, StandardSetMembership, StandardSetRoomState, StringRoomAlias, StringRoomID, StringUserID, isError } from "matrix-protection-suite";
|
||||
import { BotSDKMatrixAccountData, BotSDKMatrixStateData, MatrixSendClient, resolveRoomReferenceSafe } from "matrix-protection-suite-for-matrix-bot-sdk";
|
||||
import { DefaultEnabledProtectionsMigration } from "../protections/DefaultEnabledProtectionsMigration";
|
||||
import '../protections/DraupnirProtectionsIndex';
|
||||
|
||||
async function makePolicyListConfig(
|
||||
client: MatrixSendClient,
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* This file exists as a way to register all protections.
|
||||
* In future, we should maybe try to dogfood the dynamic plugin load sytem
|
||||
* instead. For now that system doesn't even exist.
|
||||
*/
|
||||
|
||||
// keep alphabetical please.
|
||||
import './BanPropagation';
|
||||
import './BasicFlooding';
|
||||
import './FirstMessageIsImage';
|
||||
import './JoinWaveShortCircuit';
|
||||
import './MessageIsMedia';
|
||||
import './MessageIsVoice';
|
||||
import './TrustedReporters';
|
||||
import './WordList';
|
||||
Reference in New Issue
Block a user