mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-10-23 09:22:24 +00:00
Remove status command from protections for now.
We will replace them with protection specific command tables later.
This commit is contained in:
1 parent
e710f99286
commit
fc163edb3e
1 file changed
+7
-2
@@ -25,11 +25,10 @@ limitations under the License.
|
||||
* are NOT distributed, contributed, committed, or licensed under the Apache License.
|
||||
*/
|
||||
|
||||
import { AbstractProtection, ActionResult, ConsequenceProvider, Logger, MembershipChange, MembershipChangeType, Ok, ProtectedRoomsSet, Protection, ProtectionDescription, RoomMembershipRevision, SafeIntegerProtectionSetting, StandardProtectionSettings, StringRoomID, describeProtection, isError } from "matrix-protection-suite";
|
||||
import { AbstractProtection, ActionResult, ConsequenceProvider, Logger, MembershipChange, MembershipChangeType, Ok, ProtectedRoomsSet, ProtectionDescription, RoomMembershipRevision, SafeIntegerProtectionSetting, StandardProtectionSettings, StringRoomID, describeProtection, isError } from "matrix-protection-suite";
|
||||
import {LogLevel} from "matrix-bot-sdk";
|
||||
import { Draupnir } from "../Draupnir";
|
||||
import { DraupnirProtection } from "./Protection";
|
||||
import { DocumentNode } from "../commands/interface-manager/DeadDocument";
|
||||
|
||||
const log = new Logger('JoinWaveShortCircuitProtection');
|
||||
|
||||
@@ -139,6 +138,11 @@ export class JoinWaveShortCircuitProtection extends AbstractProtection implement
|
||||
return (this.settings.timescaleMinutes * ONE_MINUTE)
|
||||
}
|
||||
|
||||
/**
|
||||
* Yeah i know this is evil but
|
||||
* We need to figure this out once we allow protections to have their own
|
||||
* command tables somehow.
|
||||
* which will probably entail doing the symbol case hacks from Utena for camel case etc.
|
||||
public async status(keywords, subcommands): Promise<DocumentNode> {
|
||||
const withExpired = subcommand.includes("withExpired");
|
||||
const withStart = subcommand.includes("withStart");
|
||||
@@ -168,4 +172,5 @@ export class JoinWaveShortCircuitProtection extends AbstractProtection implement
|
||||
text,
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
Reference in new issue
Block a user