fixed Birthday Event, Renamed DB Colls
This commit is contained in:
@@ -12,7 +12,7 @@ module.exports = {
|
||||
const to = await interaction.message.guild.members.fetch(temp[6].slice(2,-1))
|
||||
|
||||
const db = mClient.db(process.env.M_DB)
|
||||
const nutsColl = db.collection('nuts')
|
||||
const nutsColl = db.collection('items_nuts')
|
||||
await nutsColl.findOneAndUpdate({ userID: from.id }, { $inc: { nuts: -amount } }, { upsert: true })
|
||||
await nutsColl.findOneAndUpdate({ userID: to.id }, { $inc: { nuts: +amount } }, { upsert: true })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user