re-added quotes chat command for adding them by reply function

This commit is contained in:
2026-04-07 20:23:27 +02:00
parent f41f848ad5
commit 466b9708cf
3 changed files with 84 additions and 1 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ require('dotenv').config()
function delay(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }
async function quotesAdd(interaction) {
const messageLink = await interaction.options.getString('link')
//regex for message link
const regex = /^https:\/\/discord\.com\/channels\/\d+\/\d+\/\d+$/
@@ -357,7 +358,7 @@ module.exports = {
.addSubcommand(s =>
s
.setName('add')
.setDescription('add a new quote')
.setDescription('add a new quote either by replying to a message or inserting the message link')
.addStringOption(o => o.setName('link').setDescription('insert message link').setRequired(true)))
.addSubcommand(s =>
s