-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Ban user on 3 failed verification attempts - created user schema - ban handler * [Fix]:Use !verify only in #verify channel - blocked DM - removed unnecessary return statements * [Fix]: Check if "user" exists to tackle rejoin * [Fix]: user.existsInUsers was never getting called without await. * [Fix]: Made husky work(hopefully). * [Fix]: Minor change Co-authored-by: Utkarsh <[email protected]>
- Loading branch information
1 parent
4cabea1
commit 122ab36
Showing
7 changed files
with
278 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const mongoose = require("mongoose"); | ||
|
||
const userSchema = new mongoose.Schema( | ||
{ | ||
discordId: { type: String, required: true }, | ||
failCount: { type: Number, required: true }, | ||
cfHandle: { type: String, required: false }, | ||
}, | ||
{ | ||
timestamps: true, | ||
collection: "users", | ||
} | ||
); | ||
|
||
module.exports = new mongoose.model("User", userSchema); |
Oops, something went wrong.