fixed Birthday Event, Renamed DB Colls
This commit is contained in:
@@ -8,7 +8,7 @@ module.exports = {
|
||||
async execute(interaction) {
|
||||
await interaction.deferReply()
|
||||
const db = mClient.db(process.env.M_DB)
|
||||
const quotesColl = db.collection('quotes')
|
||||
const quotesColl = db.collection('items_quotes')
|
||||
const maxValue = await quotesColl.countDocuments({ $and: [{ guildID: interaction.guild.id }, { count: { $gt: 0 } }] })
|
||||
|
||||
let skip = interaction.message.embeds[0].data.fields[0].value.split('.')
|
||||
|
||||
@@ -8,7 +8,7 @@ module.exports = {
|
||||
async execute(interaction) {
|
||||
await interaction.deferReply()
|
||||
const db = mClient.db(process.env.M_DB)
|
||||
const quotesColl = db.collection('quotes')
|
||||
const quotesColl = db.collection('items_quotes')
|
||||
const maxValue = await quotesColl.countDocuments({ $and: [{ guildID: interaction.guild.id }, { count: { $gt: 0 } }] })
|
||||
|
||||
let skip = interaction.message.embeds[0].data.fields[0].value.split('.')
|
||||
|
||||
@@ -14,7 +14,7 @@ module.exports = {
|
||||
if (!target) { return interaction.reply({ content: 'Please use a Filter', ephemeral: true }) }
|
||||
|
||||
const db = mClient.db(process.env.M_DB)
|
||||
const quotesColl = db.collection('quotes')
|
||||
const quotesColl = db.collection('items_quotes')
|
||||
const quotes = await quotesColl.find({ by: target.id }).toArray()
|
||||
|
||||
var index = Number((await interaction.message.embeds[0].data.title).split(' ')[2].slice(1))
|
||||
|
||||
@@ -14,7 +14,7 @@ module.exports = {
|
||||
if (!target) { return interaction.reply({ content: 'Please use a Filter', ephemeral: true }) }
|
||||
|
||||
const db = mClient.db(process.env.M_DB)
|
||||
const quotesColl = db.collection('quotes')
|
||||
const quotesColl = db.collection('items_quotes')
|
||||
const quotes = await quotesColl.find({ by: target.id }).toArray()
|
||||
|
||||
var index = Number((await interaction.message.embeds[0].data.title).split(' ')[2].slice(1))
|
||||
|
||||
Reference in New Issue
Block a user