aboutsummaryrefslogtreecommitdiff
path: root/bot/src/commands/quote.js
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-04-02 02:21:41 -0400
committerAndrew Lee <andrew@alee14.me>2025-04-02 02:21:41 -0400
commit10434adad478d21bbb834a5803125db9f54c9d6c (patch)
treee1159a26948d24c2a065dfd15f71b64970515930 /bot/src/commands/quote.js
parent657599acccf351c7c9366cec9f648b7496c89bdb (diff)
downloadAleeBot-beta.tar.gz
AleeBot-beta.tar.bz2
AleeBot-beta.zip
Added i18n (basic); Blacklist feature; Put error msg into a filebeta
Diffstat (limited to 'bot/src/commands/quote.js')
-rw-r--r--bot/src/commands/quote.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/src/commands/quote.js b/bot/src/commands/quote.js
index 79f05de..6d30847 100644
--- a/bot/src/commands/quote.js
+++ b/bot/src/commands/quote.js
@@ -8,6 +8,7 @@ import {
} from 'discord.js';
import { pendingQuote, quote as quoteDB } from '../db/models/quote.js';
import { abEmbedColour } from '../storage/consts.js';
+import { blacklistCheck } from '../storage/functions.js';
// import { setTimeout as wait } from 'node:timers/promises';
//
// let setupMessage = 'Welcome to the AleeBot Quote Setup!\n';
@@ -35,6 +36,9 @@ export default {
.setDescription('Got a quote? Add it here!')),
async execute(interaction) {
if (interaction.options.getSubcommand() === 'add') {
+ const isBlacklisted = await blacklistCheck(interaction);
+ if (isBlacklisted) return;
+
const modal = new ModalBuilder()
.setCustomId(`newQuote-${interaction.user.id}`)
.setTitle('New Quote for AleeBot');