Skip to content

Commit

Permalink
✨ Terr bot will be watching
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasGruber committed Oct 24, 2024
1 parent 027971b commit 0b658b6
Show file tree
Hide file tree
Showing 11 changed files with 7,187 additions and 48 deletions.
2 changes: 2 additions & 0 deletions app/drizzle/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ export const BanStates = [
"OFFICIAL_WARNING",
] as const;

export const TERR_BOT_ID = "iDoQgjrffFd81z8dCYdw7";

export const TimeUnits = ["minutes", "hours", "days", "weeks", "months"] as const;
export type TimeUnit = (typeof TimeUnits)[number];

Expand Down
25 changes: 25 additions & 0 deletions app/drizzle/migrations/0161_wonderful_galactus.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
CREATE TABLE `AutomatedModeration` (
`id` varchar(191) NOT NULL,
`userId` varchar(191) NOT NULL,
`content` text NOT NULL,
`relationType` enum('comment','privateMessage','forumPost','userReport','userNindo','clanOrder','anbuOrder','kageOrder','userAvatar') NOT NULL,
`sexual` boolean NOT NULL DEFAULT false,
`sexual_minors` boolean NOT NULL DEFAULT false,
`harassment` boolean NOT NULL DEFAULT false,
`harassment_threatening` boolean NOT NULL DEFAULT false,
`hate` boolean NOT NULL DEFAULT false,
`hate_threatening` boolean NOT NULL DEFAULT false,
`illicit` boolean NOT NULL DEFAULT false,
`illicit_violent` boolean NOT NULL DEFAULT false,
`self_harm` boolean NOT NULL DEFAULT false,
`self_harm_intent` boolean NOT NULL DEFAULT false,
`self_harm_instructions` boolean NOT NULL DEFAULT false,
`violence` boolean NOT NULL DEFAULT false,
`violence_graphic` boolean NOT NULL DEFAULT false,
`createdAt` datetime(3) NOT NULL DEFAULT (CURRENT_TIMESTAMP(3)),
CONSTRAINT `AutomatedModeration_id` PRIMARY KEY(`id`)
);

ALTER TABLE `UserReportComment` ADD `isReported` boolean DEFAULT false NOT NULL;
CREATE INDEX `AutoMod_userId_idx` ON `AutomatedModeration` (`userId`);
CREATE INDEX `AutoMod_relationType_idx` ON `AutomatedModeration` (`relationType`);
Loading

0 comments on commit 0b658b6

Please sign in to comment.