aboutsummaryrefslogtreecommitdiff
path: root/src/lib/models/Shared.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-09 09:31:55 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-09 09:31:55 -0500
commite26413dde461729694c36a92e01970df15eb68a5 (patch)
tree3591852bd988e5fc0aa5a60850ed75666c66209c /src/lib/models/Shared.ts
parent522a629a945ecaf1c53aae55fd2d5dfe7346aad4 (diff)
downloadtanzanite-e26413dde461729694c36a92e01970df15eb68a5.tar.gz
tanzanite-e26413dde461729694c36a92e01970df15eb68a5.tar.bz2
tanzanite-e26413dde461729694c36a92e01970df15eb68a5.zip
this is a really bad idea
Diffstat (limited to 'src/lib/models/Shared.ts')
-rw-r--r--src/lib/models/Shared.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/models/Shared.ts b/src/lib/models/Shared.ts
index a240ef9..acb5c1e 100644
--- a/src/lib/models/Shared.ts
+++ b/src/lib/models/Shared.ts
@@ -11,6 +11,7 @@ export interface SharedModel {
badLinksSecret: string[];
badLinks: string[];
badWords: BadWords;
+ autoBanCode: string | null;
}
export interface SharedModelCreationAttributes {
@@ -20,6 +21,7 @@ export interface SharedModelCreationAttributes {
badLinksSecret?: string[];
badLinks?: string[];
badWords?: BadWords;
+ autoBanCode?: string;
}
export class Shared extends BaseModel<SharedModel, SharedModelCreationAttributes> implements SharedModel {
@@ -54,6 +56,11 @@ export class Shared extends BaseModel<SharedModel, SharedModelCreationAttributes
public declare badWords: BadWords;
/**
+ * Code that is used to match for auto banning users in moulberry's bush
+ */
+ public declare autoBanCode: string;
+
+ /**
* Initializes the model.
* @param sequelize The sequelize instance.
*/
@@ -65,7 +72,8 @@ export class Shared extends BaseModel<SharedModel, SharedModelCreationAttributes
privilegedUsers: { type: DataTypes.JSONB, allowNull: false, defaultValue: [] },
badLinksSecret: { type: DataTypes.JSONB, allowNull: false, defaultValue: [] },
badLinks: { type: DataTypes.JSONB, allowNull: false, defaultValue: [] },
- badWords: { type: DataTypes.JSONB, allowNull: false, defaultValue: {} }
+ badWords: { type: DataTypes.JSONB, allowNull: false, defaultValue: {} },
+ autoBanCode: { type: DataTypes.TEXT }
},
{ sequelize, freezeTableName: true }
);