Skip to content

Commit

Permalink
removed DoB related stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-flip committed Jun 12, 2024
1 parent fe8b60b commit fb46570
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 41 deletions.
5 changes: 1 addition & 4 deletions database/models/UserDoB.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ module.exports = sequelize.define('UserDoB', {
type: Sequelize.STRING(30),
primaryKey: true,
},
DoB: {
type: Sequelize.DATE,
allowNull: false,
},
allow: {
type: Sequelize.BOOLEAN,
allowNull: false,
defaultValue: false,
},
teammemberID: Sequelize.STRING(30),
serverID: Sequelize.STRING(30),
});
7 changes: 0 additions & 7 deletions functions/ENGINE/checkout/stripCheckinRole.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
const userDoB = require('../../../database/models/UserDoB');

async function searchUser(ID) {
const result = await userDoB.findOne({ where: { ID, allow: true } }).catch(ERR);
return result;
}

async function checkinFail(user, fallbackChannel) {
const body = `
It seems that you have left [The Dragons Maw](https://discord.gg/Jy4ZuCc). You have to be part of that server to continue using Vorarephilia~Pride!
Expand Down
6 changes: 0 additions & 6 deletions functions/ENGINE/contentWarning/COMPONENT/modal/repost.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
const { AttachmentBuilder } = require('discord.js');

async function addUser(ID, DoB, allow, teammemberID) {
if (await userDoB.findOne({ where: { ID } }).catch(ERR)) return false;
await userDoB.findOrCreate({ where: { ID }, defaults: { DoB, allow, teammemberID } }).catch(ERR);
return true;
}

module.exports.run = async (interaction) => {
// get modal field id and user provided CW text
const customID = interaction.components[0].components[0].customId;
Expand Down
24 changes: 0 additions & 24 deletions functions/checkUserAge.js

This file was deleted.

0 comments on commit fb46570

Please sign in to comment.