Add opt out

pull/1/head
Supositware 2 years ago
parent 8ae824f025
commit 1edb4d8fef

@ -1,5 +1,6 @@
import { EmbedBuilder } from 'discord.js';
import fs from 'node:fs';
import db from '../../models/index.js';
global.boards = {};
export default {
@ -19,6 +20,9 @@ export default {
});
}
const isOptOut = await db.optout.findOne({ where: { userID: reaction.message.author } });
if (isOptOut) return;
let starboardChannel, shameboardChannel;
let reactionCount = reaction.count;

@ -1,5 +1,6 @@
import { EmbedBuilder } from 'discord.js';
import fs from 'node:fs';
import db from '../../models/index.js';
global.boards = {};
export default {
@ -19,6 +20,9 @@ export default {
});
}
const isOptOut = await db.optout.findOne({ where: { userID: reaction.message.author } });
if (isOptOut) return;
let starboardChannel, shameboardChannel;
let reactionCount = reaction.count;

Loading…
Cancel
Save