From d65df90389c37d09cb9d36afe9e686bca5aa2377 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Wed, 22 Dec 2021 14:02:16 -0700 Subject: [PATCH] e --- commands/social/fuck.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/commands/social/fuck.js b/commands/social/fuck.js index f2a1d32..12a5f90 100644 --- a/commands/social/fuck.js +++ b/commands/social/fuck.js @@ -28,21 +28,21 @@ module.exports = { .setTimestamp()]} : "You can't bang me.......only Wubzy can." );} + let fuck; + if (message.channel.nsfw) { + fuck = await VC.findOne({uid: message.author.id, countOf: 'realfuck'}) || new VC({uid: message.author.id, countOf: 'realfuck'}); + savess = await Saves.findOne({name: 'realfuck'}) || new Saves({name: 'realfuck'}); + saves = savess.saves; + } else { + fuck = await VC.findOne({uid: message.author.id, countOf: 'fuck'}) || new VC({uid: message.author.id, countOf: 'fuck'}); + savess = await Saves.findOne({name: 'fuck'}) ? await Saves.findOne({name: 'fuck'}) : new Saves({name: 'fuck'}); + saves = savess.saves; + } if (mention && args[0].match(/^<@!?\d+>$/)) { if (!message.guild) {return message.reply("Can't bang someone that doesn't exist.");} if (!message.guild.members.cache.has(mention.id)) {return message.reply("They ran away from you..I wonder why.");} - if (message.author.id === mention.id) {return message.reply("Go fuck yourself..oh wait you can't.");} - let fuck; - if (message.channel.nsfw) { - fuck = await VC.findOne({uid: message.author.id, countOf: 'realfuck'}) || new VC({uid: message.author.id, countOf: 'realfuck'}); - savess = await Saves.findOne({name: 'realfuck'}) ? await Saves.findOne({name: 'realfuck'}) : new Saves({name: 'realfuck'}); - saves = savess.saves; - } else { - fuck = await VC.findOne({uid: message.author.id, countOf: 'fuck'}) || new VC({uid: message.author.id, countOf: 'fuck'}); - savess = await Saves.findOne({name: 'fuck'}) ? await Saves.findOne({name: 'fuck'}) : new Saves({name: 'fuck'}); - saves = savess.saves; - } + if (message.author.id === mention.id) {return message.reply("Go fuck yourself... oh wait you can't.");} fuck.against[mention.id] = fuck.against[mention.id] ? fuck.against[mention.id] + 1 : 1; fuck.total++; fuck.markModified(`against.${mention.id}`);