Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay committed Nov 22, 2024
1 parent 8cd1726 commit e284fcf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/commands/KickCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.

import { Mjolnir } from "../Mjolnir";
import { LogLevel, MatrixGlob, RichReply } from "@vector-im/matrix-bot-sdk";
import {htmlEscape} from "../utils";
import { htmlEscape } from "../utils";

// !mjolnir kick <user|filter> [room] [reason]
export async function execKickCommand(roomId: string, event: any, mjolnir: Mjolnir, parts: string[]) {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/SuspendCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.

import { Mjolnir } from "../Mjolnir";
import { RichReply } from "@vector-im/matrix-bot-sdk";
import {htmlEscape} from "../utils";
import { htmlEscape } from "../utils";

export async function execSuspendCommand(roomId: string, event: any, mjolnir: Mjolnir, parts: string[]) {
const target = parts[2];
Expand Down
2 changes: 1 addition & 1 deletion src/protections/BasicFlooding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { Protection } from "./IProtection";
import { NumberProtectionSetting } from "./ProtectionSettings";
import { Mjolnir } from "../Mjolnir";
import { LogLevel, LogService } from "@vector-im/matrix-bot-sdk";
import {htmlEscape} from "../utils";
import { htmlEscape } from "../utils";

// if this is exceeded, we'll ban the user for spam and redact their messages
export const DEFAULT_MAX_PER_MINUTE = 10;
Expand Down
2 changes: 1 addition & 1 deletion src/protections/FirstMessageIsImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
import { Protection } from "./IProtection";
import { Mjolnir } from "../Mjolnir";
import { LogLevel, LogService } from "@vector-im/matrix-bot-sdk";
import {htmlEscape, isTrueJoinEvent} from "../utils";
import { htmlEscape, isTrueJoinEvent } from "../utils";

export class FirstMessageIsImage extends Protection {
private justJoined: { [roomId: string]: string[] } = {};
Expand Down

0 comments on commit e284fcf

Please sign in to comment.