From da2ce99c0d05003323d35adf24968acde055f547 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Thu, 29 Jul 2021 15:20:46 -0600 Subject: [PATCH] a metric boat load of commands --- commands/social/angry.js | 38 +++++++++++++++++++++++ commands/social/blush.js | 37 ++++++++++++++++++++++ commands/social/bonk.js | 62 +++++++++++++++++++++++++++++++++++++ commands/social/creampie.js | 56 +++++++++++++++++++++++++++++++++ commands/social/dance.js | 38 +++++++++++++++++++++++ commands/social/dodge.js | 38 +++++++++++++++++++++++ commands/social/feed.js | 56 +++++++++++++++++++++++++++++++++ commands/social/fuck.js | 62 +++++++++++++++++++++++++++++++++++++ commands/social/handhold.js | 56 +++++++++++++++++++++++++++++++++ commands/social/heal.js | 56 +++++++++++++++++++++++++++++++++ commands/social/kill.js | 56 +++++++++++++++++++++++++++++++++ commands/social/kiss.js | 62 +++++++++++++++++++++++++++++++++++++ commands/social/laugh.js | 38 +++++++++++++++++++++++ commands/social/run.js | 38 +++++++++++++++++++++++ commands/social/simp.js | 56 +++++++++++++++++++++++++++++++++ commands/social/smile.js | 38 +++++++++++++++++++++++ commands/social/spank.js | 53 +++++++++++++++++++++++++++++++ commands/social/wink.js | 56 +++++++++++++++++++++++++++++++++ 18 files changed, 896 insertions(+) create mode 100644 commands/social/angry.js create mode 100644 commands/social/blush.js create mode 100644 commands/social/bonk.js create mode 100644 commands/social/creampie.js create mode 100644 commands/social/dance.js create mode 100644 commands/social/dodge.js create mode 100644 commands/social/feed.js create mode 100644 commands/social/fuck.js create mode 100644 commands/social/handhold.js create mode 100644 commands/social/heal.js create mode 100644 commands/social/kill.js create mode 100644 commands/social/kiss.js create mode 100644 commands/social/laugh.js create mode 100644 commands/social/run.js create mode 100644 commands/social/simp.js create mode 100644 commands/social/smile.js create mode 100644 commands/social/spank.js create mode 100644 commands/social/wink.js diff --git a/commands/social/angry.js b/commands/social/angry.js new file mode 100644 index 0000000..3f23169 --- /dev/null +++ b/commands/social/angry.js @@ -0,0 +1,38 @@ +const Discord = require('discord.js'); +const Saves = require('../../models/saves'); +const UserData = require('../../models/user'); +const makeId = require('../../util/makeid'); + +module.exports = { + name: "angry", + aliases: ['pissed', 'angry', 'mad', 'angy'], + help: "Show your anger with {{p}} angy", + meta: { + category: 'Social', + description: "Show the world how mad you are!", + syntax: '`angry`', + extra: null + }, + async execute(message, msg, args, cmd, prefix, mention, client) { + let savess = await Saves.findOne({name: 'angry'}) ? await Saves.findOne({name: 'angry'}) : new Saves({name: 'angry'}); + let saves = savess.saves; + if (!args.length) {return message.channel.send(new Discord.MessageEmbed() + .setTitle(`${message.guild ? message.member.displayName : message.author.username} is pissed off!`) + .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) + .setColor('a21a1a') + );} + if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { + if (!args[1]) {return message.channel.send('oi there cunt, give me a link of an image to add!');} + let tu = await UserData.findOne({uid: message.author.id}); + if ((!tu || !tu.developer) && !client.misc.savers.includes(message.author.id)) {return message.reply("You must be a Luno Developer in order to add new angry GIFs.");} + let e = true; + let id; + while (e === true) {id = makeId(6); if (!saves.has(id)) {e = false;}} + args.shift(); + saves.set(id, args.join(" ").trim()); + savess.saves = saves; + savess.save(); + return message.channel.send("Save added!"); + } + } +}; \ No newline at end of file diff --git a/commands/social/blush.js b/commands/social/blush.js new file mode 100644 index 0000000..9278378 --- /dev/null +++ b/commands/social/blush.js @@ -0,0 +1,37 @@ +const Discord = require('discord.js'); +const Saves = require('../../models/saves'); +const UserData = require('../../models/user'); +const makeId = require('../../util/makeid'); + +module.exports = { + name: "blush", + help: "Let others know that someone made your cheeks red `{{p}}sip`.", + meta: { + category: 'Social', + description: "Let others know that someone made your cheeks red", + syntax: '`blush`', + extra: null + }, + async execute(message, msg, args, cmd, prefix, mention, client) { + let savess = await Saves.findOne({name: 'blush'}) ? await Saves.findOne({name: 'blush'}) : new Saves({name: 'blush'}); + let saves = savess.saves; + if (!args.length) {return message.channel.send(new Discord.MessageEmbed() + .setTitle(`${message.guild ? message.member.displayName : message.author.username} blushes UwU`) + .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) + .setColor('ad0072') + );} + if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { + if (!args[1]) {return message.channel.send('oi there cunt, give me a link of an image to add!');} + let tu = await UserData.findOne({uid: message.author.id}); + if ((!tu || !tu.developer) && !client.misc.savers.includes(message.author.id)) {return message.reply("You must be a Luno Developer in order to add new sip GIFs.");} + let e = true; + let id; + while (e === true) {id = makeId(6); if (!saves.has(id)) {e = false;}} + args.shift(); + saves.set(id, args.join(" ").trim()); + savess.saves = saves; + savess.save(); + return message.channel.send("Save added!"); + } + } +}; \ No newline at end of file diff --git a/commands/social/bonk.js b/commands/social/bonk.js new file mode 100644 index 0000000..a049fae --- /dev/null +++ b/commands/social/bonk.js @@ -0,0 +1,62 @@ +const Discord = require('discord.js'); + +const Saves = require('../../models/saves'); +const UserData = require('../../models/user'); +const VC = require('../../models/vscount'); + +const makeId = require('../../util/makeid'); + +module.exports = { + name: "bonk", + help: "Give someone a healthy bonk with `{{p}}bonk`!", + meta: { + category: 'Social', + description: "Give someone a good bonking!", + syntax: '`bonk <@user>`', + extra: null + }, + async execute(message, msg, args, cmd, prefix, mention, client) { + let savess = await Saves.findOne({name: 'bonk'}) ? await Saves.findOne({name: 'bonk'}) : new Saves({name: 'bonk'}); + let saves = savess.saves; + if (!args.length) { + return message.channel.send(message.guild ? new Discord.MessageEmbed() + .setTitle(`${message.guild ? message.member.displayName : message.author.username} needs a good bonk!`) + .setThumbnail(message.author.avatarURL({size: 2048})) + .setDescription(`Give them one with \`${prefix}bonk @${message.member.displayName}\`!`) + .setColor('dda0dd') + .setFooter('Luno', client.user.avatarURL()) + .setTimestamp() + : "I fucking dare you to hit me." + );} + if (mention && args[0].match(/^<@(?:!?)(?:\d+)>$/)) { + if (!message.guild) {return message.reply("I dare you to hit me.");} + if (!message.guild.members.cache.has(mention.id)) {return message.reply("You missed your bonk..");} + if (message.author.id === mention.id) {return message.reply("I should bonk you for attempting to self harm.");} + let bonk = await VC.findOne({uid: message.author.id, countOf: 'bonk'}) || new VC({uid: message.author.id, countOf: 'bonk'}); + bonk.against[mention.id] = bonk.against[mention.id] ? bonk.against[mention.id] + 1 : 1; + bonk.total++; + bonk.markModified(`against.${mention.id}`); + bonk.save(); + return message.channel.send(new Discord.MessageEmbed() + .setAuthor(`${message.guild ? message.member.displayName : message.author.username} bonks ${message.guild.members.cache.get(mention.id).displayName}!...ouch! `, message.author.avatarURL()) + .setDescription(`You've bonked them **${bonk.against[mention.id] === 1 ? 'once' : `${bonk.against[mention.id]} times!`}**`) + .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) + .setColor('dda0dd') + .setFooter(`${bonk.total} bonk${bonk.total === 1 ? '' : 's'} total`) + ); + } + if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { + if (!args[1]) {return message.channel.send('oi there cunt, give me a link of an image to add!');} + let tu = await UserData.findOne({uid: message.author.id}); + if ((!tu || !tu.developer) && !client.misc.savers.includes(message.author.id)) {return message.reply("You must be a Luno Developer in order to add new bonk GIFs.");} + let e = true; + let id; + while (e === true) {id = makeId(6); if (!saves.has(id)) {e = false;}} + args.shift(); + saves.set(id, args.join(" ").trim()); + savess.saves = saves; + savess.save(); + return message.channel.send("Ayy new ways to bonk people"); + } + } +}; \ No newline at end of file diff --git a/commands/social/creampie.js b/commands/social/creampie.js new file mode 100644 index 0000000..cb90e91 --- /dev/null +++ b/commands/social/creampie.js @@ -0,0 +1,56 @@ +const Discord = require('discord.js'); +const Saves = require('../../models/saves'); +const UserData = require('../../models/user'); +const makeId = require('../../util/makeid'); + +module.exports = { + name: "creampie", + help: "Show the world your creaming skils with `{{p}}creampie @person`!", + aliases: ['creampie'], + meta: { + category: 'Social', + description: "Give the gift of a creampie!", + syntax: '`Creampie <@user>`', + extra: null + }, + async execute(message, msg, args, cmd, prefix, mention, client) { + let savess = await Saves.findOne({name: 'creampie'}) ? await Saves.findOne({name: 'creampie'}) : new Saves({name: 'creampie'}); + let saves = savess.saves; + if (!args.length) { + let name = message.guild ? message.member.displayName : message.author.username; + return message.channel.send(message.guild ? new Discord.MessageEmbed() + .setTitle(`${name} needs a creampie!`) + .setThumbnail(message.author.avatarURL({size: 2048})) + .setDescription(`Help with their..ahem..problem..with \`${prefix}creampie @${name}\`!`) + .setColor('fffdd0') + .setFooter('Luno', client.user.avatarURL()) + .setTimestamp() + : "Do. Not. Touch. Me." + );} + if (mention && args[0].match(/^<@(?:!?)(?:\d+)>$/)) { + if (!message.guild) {return message.reply("No means no.");} + if (!message.guild.members.cache.has(mention.id)) {return message.reply("I guess they didn't want your creampie..");} + if (message.author.id === mention.id) {return message.reply("You can't give yourself a creampie..weirdo.");} + let name = message.guild ? message.member.displayName : message.author.username; + let uname = message.guild.members.cache.get(mention.id).displayName; + return message.channel.send(new Discord.MessageEmbed() + .setAuthor(`${message.guild ? message.member.displayName : message.author.username} gives a massive creampie to ${message.guild.members.cache.get(mention.id).displayName}..Tasty!`, message.author.avatarURL()) + .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) + .setColor('fffdd0') + ); + } + if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { + if (!args[1]) {return message.channel.send('oi there cunt, give me a link of an image to add!');} + let tu = await UserData.findOne({uid: message.author.id}); + if ((!tu || !tu.developer) && !client.developers.includes(message.author.id) && !client.misc.savers.includes(message.author.id)) {return message.reply("You must be a Luno Developer in order to add new creampie GIFs.");} + let e = true; + let id; + while (e === true) {id = makeId(6); if (!saves.has(id)) {e = false;}} + args.shift(); + saves.set(id, args.join(" ").trim()); + savess.saves = saves; + savess.save(); + return message.channel.send("I made a new creampie!...ew"); + } + } +}; \ No newline at end of file diff --git a/commands/social/dance.js b/commands/social/dance.js new file mode 100644 index 0000000..b32d226 --- /dev/null +++ b/commands/social/dance.js @@ -0,0 +1,38 @@ +const Discord = require('discord.js'); +const Saves = require('../../models/saves'); +const UserData = require('../../models/user'); +const makeId = require('../../util/makeid'); + +module.exports = { + name: "dance", + aliases: ['party'], + help: "Shake it off with {{p}}dance!", + meta: { + category: 'Social', + description: "Show off your moves", + syntax: '`dance`', + extra: null + }, + async execute(message, msg, args, cmd, prefix, mention, client) { + let savess = await Saves.findOne({name: 'dance'}) ? await Saves.findOne({name: 'dance'}) : new Saves({name: 'dance'}); + let saves = savess.saves; + if (!args.length) {return message.channel.send(new Discord.MessageEmbed() + .setTitle(`${message.guild ? message.member.displayName : message.author.username} is dancing like there's no tomorrow!`) + .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) + .setColor('3A8ED5') + );} + if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { + if (!args[1]) {return message.channel.send('oi there cunt, give me a link of an image to add!');} + let tu = await UserData.findOne({uid: message.author.id}); + if ((!tu || !tu.developer) && !client.misc.savers.includes(message.author.id)) {return message.reply("You must be a Luno Developer in order to add new dance GIFs.");} + let e = true; + let id; + while (e === true) {id = makeId(6); if (!saves.has(id)) {e = false;}} + args.shift(); + saves.set(id, args.join(" ").trim()); + savess.saves = saves; + savess.save(); + return message.channel.send("Save added!"); + } + } +}; \ No newline at end of file diff --git a/commands/social/dodge.js b/commands/social/dodge.js new file mode 100644 index 0000000..a5e7a87 --- /dev/null +++ b/commands/social/dodge.js @@ -0,0 +1,38 @@ +const Discord = require('discord.js'); +const Saves = require('../../models/saves'); +const UserData = require('../../models/user'); +const makeId = require('../../util/makeid'); + +module.exports = { + name: "dodge", + aliases: ['dodge'], + help: "Avoid an incoming attack with {{p}}dodge!", + meta: { + category: 'Social', + description: "Avoid incoming death with a dodge!", + syntax: '`dodge`', + extra: null + }, + async execute(message, msg, args, cmd, prefix, mention, client) { + let savess = await Saves.findOne({name: 'dodge'}) ? await Saves.findOne({name: 'dodge'}) : new Saves({name: 'dodge'}); + let saves = savess.saves; + if (!args.length) {return message.channel.send(new Discord.MessageEmbed() + .setTitle(`${message.guild ? message.member.displayName : message.author.username} dodged the attack!`) + .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) + .setColor('b2ac88') + );} + if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { + if (!args[1]) {return message.channel.send('oi there cunt, give me a link of an image to add!');} + let tu = await UserData.findOne({uid: message.author.id}); + if ((!tu || !tu.developer) && !client.misc.savers.includes(message.author.id)) {return message.reply("You must be a Luno Developer in order to add new smile GIFs.");} + let e = true; + let id; + while (e === true) {id = makeId(6); if (!saves.has(id)) {e = false;}} + args.shift(); + saves.set(id, args.join(" ").trim()); + savess.saves = saves; + savess.save(); + return message.channel.send("I did it! Are you proud of me senpai?"); + } + } +}; \ No newline at end of file diff --git a/commands/social/feed.js b/commands/social/feed.js new file mode 100644 index 0000000..5e67d3f --- /dev/null +++ b/commands/social/feed.js @@ -0,0 +1,56 @@ +const Discord = require('discord.js'); +const Saves = require('../../models/saves'); +const UserData = require('../../models/user'); +const makeId = require('../../util/makeid'); + +module.exports = { + name: "feed", + help: "Give someone some food with `{{p}}feed @person`!", + aliases: ['feed'], + meta: { + category: 'Social', + description: "Cutely feed someone!", + syntax: '`feed <@user>`', + extra: null + }, + async execute(message, msg, args, cmd, prefix, mention, client) { + let savess = await Saves.findOne({name: 'feed'}) ? await Saves.findOne({name: 'feed'}) : new Saves({name: 'feed'}); + let saves = savess.saves; + if (!args.length) { + let name = message.guild ? message.member.displayName : message.author.username; + return message.channel.send(message.guild ? new Discord.MessageEmbed() + .setTitle(`${name} is hungry, why not feed them?`) + .setThumbnail(message.author.avatarURL({size: 2048})) + .setDescription(`Bless someone with some food with \`${prefix}feed @${name}\`!`) + .setColor('bb0a1e') + .setFooter('Luno', client.user.avatarURL()) + .setTimestamp() + : "Sorry..I'm kinda full right now." + );} + if (mention && args[0].match(/^<@(?:!?)(?:\d+)>$/)) { + if (!message.guild) {return message.reply("Only Crescent can feed me sorry.");} + if (!message.guild.members.cache.has(mention.id)) {return message.reply("I guess that person didn't want any food..");} + if (message.author.id === mention.id) {return message.reply("You can't feed yourself. **Starve.**");} + let name = message.guild ? message.member.displayName : message.author.username; + let uname = message.guild.members.cache.get(mention.id).displayName; + return message.channel.send(new Discord.MessageEmbed() + .setAuthor(`${message.guild ? message.member.displayName : message.author.username} feeds ${message.guild.members.cache.get(mention.id).displayName} a delicous treat!`, message.author.avatarURL()) + .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) + .setColor('fed8b1') + ); + } + if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { + if (!args[1]) {return message.channel.send('oi there cunt, give me a link of an image to add!');} + let tu = await UserData.findOne({uid: message.author.id}); + if ((!tu || !tu.developer) && !client.developers.includes(message.author.id) && !client.misc.savers.includes(message.author.id)) {return message.reply("You must be a Luno Developer in order to add new feeding GIFs.");} + let e = true; + let id; + while (e === true) {id = makeId(6); if (!saves.has(id)) {e = false;}} + args.shift(); + saves.set(id, args.join(" ").trim()); + savess.saves = saves; + savess.save(); + return message.channel.send("I did it! Are you proud of me senpai?"); + } + } +}; \ No newline at end of file diff --git a/commands/social/fuck.js b/commands/social/fuck.js new file mode 100644 index 0000000..89cd07f --- /dev/null +++ b/commands/social/fuck.js @@ -0,0 +1,62 @@ +const Discord = require('discord.js'); + +const Saves = require('../../models/saves'); +const UserData = require('../../models/user'); +const VC = require('../../models/vscount'); + +const makeId = require('../../util/makeid'); + +module.exports = { + name: "fuck", + help: "Tell others you're horny with `{{p}}fuck`, or bang someone by mentioning someone to fuck!", + meta: { + category: 'Social', + description: "Show someone you REALLY love them ;)", + syntax: '`fuck <@user>`', + extra: null + }, + async execute(message, msg, args, cmd, prefix, mention, client) { + let savess = await Saves.findOne({name: 'fuck'}) ? await Saves.findOne({name: 'fuck'}) : new Saves({name: 'fuck'}); + let saves = savess.saves; + if (!args.length) { + return message.channel.send(message.guild ? new Discord.MessageEmbed() + .setTitle(`${message.guild ? message.member.displayName : message.author.username} is horny!`) + .setThumbnail(message.author.avatarURL({size: 2048})) + .setDescription(`Show them some love with \`${prefix}fuck @${message.member.displayName}\`!`) + .setColor('dda0dd') + .setFooter('Luno', client.user.avatarURL()) + .setTimestamp() + : "You can't bang me.......only Crescent can." + );} + 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 = await VC.findOne({uid: message.author.id, countOf: 'fuck'}) || new VC({uid: message.author.id, countOf: 'fuck'}); + fuck.against[mention.id] = fuck.against[mention.id] ? fuck.against[mention.id] + 1 : 1; + fuck.total++; + fuck.markModified(`against.${mention.id}`); + fuck.save(); + return message.channel.send(new Discord.MessageEmbed() + .setAuthor(`${message.guild ? message.member.displayName : message.author.username} bangs ${message.guild.members.cache.get(mention.id).displayName}!...Kinky! `, message.author.avatarURL()) + .setDescription(`You've banged them **${fuck.against[mention.id] === 1 ? 'once' : `${fuck.against[mention.id]} times!`}**`) + .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) + .setColor('dda0dd') + .setFooter(`${fuck.total} fuck${fuck.total === 1 ? '' : 's'} total`) + ); + } + if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { + if (!args[1]) {return message.channel.send('oi there cunt, give me a link of an image to add!');} + let tu = await UserData.findOne({uid: message.author.id}); + if ((!tu || !tu.developer) && !client.misc.savers.includes(message.author.id)) {return message.reply("You must be a Luno Developer in order to add new bang GIFs.");} + let e = true; + let id; + while (e === true) {id = makeId(6); if (!saves.has(id)) {e = false;}} + args.shift(); + saves.set(id, args.join(" ").trim()); + savess.saves = saves; + savess.save(); + return message.channel.send("Save added!.....master.."); + } + } +}; \ No newline at end of file diff --git a/commands/social/handhold.js b/commands/social/handhold.js new file mode 100644 index 0000000..bc98f72 --- /dev/null +++ b/commands/social/handhold.js @@ -0,0 +1,56 @@ +const Discord = require('discord.js'); +const Saves = require('../../models/saves'); +const UserData = require('../../models/user'); +const makeId = require('../../util/makeid'); + +module.exports = { + name: "handhold", + help: "Hold someone's hand with `{{p}}handhold @person`", + aliases: ['hh', 'holdhands', 'holdhandswith'], + meta: { + category: 'Social', + description: "Hold someone's hand to let them know you're there for them", + syntax: '`handhold <@user>`', + extra: null + }, + async execute(message, msg, args, cmd, prefix, mention, client) { + let savess = await Saves.findOne({name: 'handhold'}) ? await Saves.findOne({name: 'handhold'}) : new Saves({name: 'handhold'}); + let saves = savess.saves; + if (!args.length) { + let name = message.guild ? message.member.displayName : message.author.username; + return message.channel.send(message.guild ? new Discord.MessageEmbed() + .setTitle(`${name} is feeling a little lonely. If only someone would hold their hand...`) + .setThumbnail(message.author.avatarURL({size: 2048})) + .setDescription(`Let them know you love them with \`${prefix}handhold @${name}\`!`) + .setColor('328ba8') + .setFooter('Luno', client.user.avatarURL()) + .setTimestamp() + : "Yikes... I'm kinda germaphobic you know. Maybe try asking in a server?" + );} + if (mention && args[0].match(/^<@(?:!?)(?:\d+)>$/)) { + if (!message.guild) {return message.reply("Please make sure you're in a server so you can mention someone other than me to hold hands with!");} + if (!message.guild.members.cache.has(mention.id)) {return message.reply("That user is not in this server!");} + if (message.author.id === mention.id) {return message.reply("Holding your own hand... I mean it's possible? Same effect, though? Eh, not really.");} + let name = message.guild ? message.member.displayName : message.author.username; + let uname = message.guild.members.cache.get(mention.id).displayName; + return message.channel.send(new Discord.MessageEmbed() + .setAuthor(`${message.guild ? message.member.displayName : message.author.username} holds ${uname.endsWith('s') ? `${uname}'` : `${uname}'s`} hand!`, message.author.avatarURL()) + .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) + .setColor('d428a0') + ); + } + if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { + if (!args[1]) {return message.channel.send('oi there cunt, give me a link of an image to add!');} + let tu = await UserData.findOne({uid: message.author.id}); + if ((!tu || !tu.developer) && !client.developers.includes(message.author.id) && !client.misc.savers.includes(message.author.id)) {return message.reply("You must be a Luno Developer in order to add new kiss GIFs.");} + let e = true; + let id; + while (e === true) {id = makeId(6); if (!saves.has(id)) {e = false;}} + args.shift(); + saves.set(id, args.join(" ").trim()); + savess.saves = saves; + savess.save(); + return message.channel.send("Save added!"); + } + } +}; \ No newline at end of file diff --git a/commands/social/heal.js b/commands/social/heal.js new file mode 100644 index 0000000..1b8a558 --- /dev/null +++ b/commands/social/heal.js @@ -0,0 +1,56 @@ +const Discord = require('discord.js'); +const Saves = require('../../models/saves'); +const UserData = require('../../models/user'); +const makeId = require('../../util/makeid'); + +module.exports = { + name: "heal", + help: "Heal somebody in need with `{{p}}heal @person`!", + aliases: ['heal'], + meta: { + category: 'Social', + description: "Heal an injured comrade!", + syntax: '`heal <@user>`', + extra: null + }, + async execute(message, msg, args, cmd, prefix, mention, client) { + let savess = await Saves.findOne({name: 'revive'}) ? await Saves.findOne({name: 'revive'}) : new Saves({name: 'revive'}); + let saves = savess.saves; + if (!args.length) { + let name = message.guild ? message.member.displayName : message.author.username; + return message.channel.send(message.guild ? new Discord.MessageEmbed() + .setTitle(`${name} needs healing!`) + .setThumbnail(message.author.avatarURL({size: 2048})) + .setDescription(`Lend them some help with \`${prefix}heal @${name}\`!`) + .setColor('ffc0cb') + .setFooter('Luno', client.user.avatarURL()) + .setTimestamp() + : "I am immortal, I don't need healing." + );} + if (mention && args[0].match(/^<@(?:!?)(?:\d+)>$/)) { + if (!message.guild) {return message.reply("I am immortal, I don't need healing.");} + if (!message.guild.members.cache.has(mention.id)) {return message.reply("It's too late..they're already gone to a better place..");} + if (message.author.id === mention.id) {return message.reply("You can't heal yourself because....I SAID SO");} + let name = message.guild ? message.member.displayName : message.author.username; + let uname = message.guild.members.cache.get(mention.id).displayName; + return message.channel.send(new Discord.MessageEmbed() + .setAuthor(`${message.guild ? message.member.displayName : message.author.username} heals ${message.guild.members.cache.get(mention.id).displayName}!`, message.author.avatarURL()) + .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) + .setColor('ffc0cb') + ); + } + if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { + if (!args[1]) {return message.channel.send('oi there cunt, give me a link of an image to add!');} + let tu = await UserData.findOne({uid: message.author.id}); + if ((!tu || !tu.developer) && !client.developers.includes(message.author.id) && !client.misc.savers.includes(message.author.id)) {return message.reply("You must be a Luno Developer in order to add new winking GIFs.");} + let e = true; + let id; + while (e === true) {id = makeId(6); if (!saves.has(id)) {e = false;}} + args.shift(); + saves.set(id, args.join(" ").trim()); + savess.saves = saves; + savess.save(); + return message.channel.send("I did it! Are you proud of me senpai?"); + } + } +}; \ No newline at end of file diff --git a/commands/social/kill.js b/commands/social/kill.js new file mode 100644 index 0000000..263ce7c --- /dev/null +++ b/commands/social/kill.js @@ -0,0 +1,56 @@ +const Discord = require('discord.js'); +const Saves = require('../../models/saves'); +const UserData = require('../../models/user'); +const makeId = require('../../util/makeid'); + +module.exports = { + name: "kill", + help: "Kill the person you despise with `{{p}}kill @person`", + aliases: ['kill', 'murder'], + meta: { + category: 'Social', + description: "Kill someone..", + syntax: '`kill <@user>`', + extra: null + }, + async execute(message, msg, args, cmd, prefix, mention, client) { + let savess = await Saves.findOne({name: 'kill'}) ? await Saves.findOne({name: 'kill'}) : new Saves({name: 'kill'}); + let saves = savess.saves; + if (!args.length) { + let name = message.guild ? message.member.displayName : message.author.username; + return message.channel.send(message.guild ? new Discord.MessageEmbed() + .setTitle(`${name} is feeling homicidal..watch out!`) + .setThumbnail(message.author.avatarURL({size: 2048})) + .setDescription(`Brutally murder someone with \`${prefix}kill @${name}\`!`) + .setColor('bb0a1e') + .setFooter('Luno', client.user.avatarURL()) + .setTimestamp() + : "You can't kill me..don't even try." + );} + if (mention && args[0].match(/^<@(?:!?)(?:\d+)>$/)) { + if (!message.guild) {return message.reply("You can't kill me..don't even try.");} + if (!message.guild.members.cache.has(mention.id)) {return message.reply("The person must have ran from their inevitable death..");} + if (message.author.id === mention.id) {return message.reply("Uhhh no. Please don't try to hurt yourself..");} + let name = message.guild ? message.member.displayName : message.author.username; + let uname = message.guild.members.cache.get(mention.id).displayName; + return message.channel.send(new Discord.MessageEmbed() + .setAuthor(`${message.guild ? message.member.displayName : message.author.username} brutally murders ${message.guild.members.cache.get(mention.id).displayName}..Rest in Peace.`, message.author.avatarURL()) + .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) + .setColor('bb0a1e') + ); + } + if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { + if (!args[1]) {return message.channel.send('oi there cunt, give me a link of an image to add!');} + let tu = await UserData.findOne({uid: message.author.id}); + if ((!tu || !tu.developer) && !client.developers.includes(message.author.id) && !client.misc.savers.includes(message.author.id)) {return message.reply("You must be a Luno Developer in order to add new winking GIFs.");} + let e = true; + let id; + while (e === true) {id = makeId(6); if (!saves.has(id)) {e = false;}} + args.shift(); + saves.set(id, args.join(" ").trim()); + savess.saves = saves; + savess.save(); + return message.channel.send("I did it! Are you proud of me senpai?"); + } + } +}; \ No newline at end of file diff --git a/commands/social/kiss.js b/commands/social/kiss.js new file mode 100644 index 0000000..b5bb670 --- /dev/null +++ b/commands/social/kiss.js @@ -0,0 +1,62 @@ +const Discord = require('discord.js'); + +const Saves = require('../../models/saves'); +const UserData = require('../../models/user'); +const VC = require('../../models/vscount'); + +const makeId = require('../../util/makeid'); + +module.exports = { + name: "kiss", + help: "Ask for a kiss with `{{p}}kiss`, or give one by mentioning someone!", + meta: { + category: 'Social', + description: "Give someone a kiss, or show that you're looking for one. Best of luck pal!", + syntax: '`kiss <@user>`', + extra: null + }, + async execute(message, msg, args, cmd, prefix, mention, client) { + let savess = await Saves.findOne({name: 'kiss'}) ? await Saves.findOne({name: 'kiss'}) : new Saves({name: 'kiss'}); + let saves = savess.saves; + if (!args.length) { + return message.channel.send(message.guild ? new Discord.MessageEmbed() + .setTitle(`${message.guild ? message.member.displayName : message.author.username} wants a kiss!`) + .setThumbnail(message.author.avatarURL({size: 2048})) + .setDescription(`Give them a little kiss with \`${prefix}kiss @${message.member.displayName}\`!`) + .setColor('328ba8') + .setFooter('Luno', client.user.avatarURL()) + .setTimestamp() + : "Sorry..my lips are for Crescent only!" + );} + if (mention && args[0].match(/^<@(?:!?)(?:\d+)>$/)) { + if (!message.guild) {return message.reply("I'd rather kiss in public..maybe try in a server?");} + if (!message.guild.members.cache.has(mention.id)) {return message.reply("That person must have ran from your love..");} + if (message.author.id === mention.id) {return message.reply("A self-kiss ought to be a little hard, don't you think?");} + let kiss = await VC.findOne({uid: message.author.id, countOf: 'kiss'}) || new VC({uid: message.author.id, countOf: 'kiss'}); + kiss.against[mention.id] = kiss.against[mention.id] ? kiss.against[mention.id] + 1 : 1; + kiss.total++; + kiss.markModified(`against.${mention.id}`); + kiss.save(); + return message.channel.send(new Discord.MessageEmbed() + .setAuthor(`${message.guild ? message.member.displayName : message.author.username} gives ${message.guild.members.cache.get(mention.id).displayName} a kiss!`, message.author.avatarURL()) + .setDescription(`You've kissed them **${kiss.against[mention.id] === 1 ? 'once' : `${kiss.against[mention.id]} times!`}**`) + .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) + .setColor('ac0f0f') + .setFooter(`${kiss.total} kisse${kiss.total === 1 ? '' : 's'} total`) + ); + } + if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { + if (!args[1]) {return message.channel.send('oi there cunt, give me a link of an image to add!');} + let tu = await UserData.findOne({uid: message.author.id}); + if ((!tu || !tu.developer) && !client.misc.savers.includes(message.author.id)) {return message.reply("You must be a Luno Developer in order to add new kissing GIFs.");} + let e = true; + let id; + while (e === true) {id = makeId(6); if (!saves.has(id)) {e = false;}} + args.shift(); + saves.set(id, args.join(" ").trim()); + savess.saves = saves; + savess.save(); + return message.channel.send("Save added master!"); + } + } +}; \ No newline at end of file diff --git a/commands/social/laugh.js b/commands/social/laugh.js new file mode 100644 index 0000000..5f71610 --- /dev/null +++ b/commands/social/laugh.js @@ -0,0 +1,38 @@ +const Discord = require('discord.js'); +const Saves = require('../../models/saves'); +const UserData = require('../../models/user'); +const makeId = require('../../util/makeid'); + +module.exports = { + name: "laugh", + aliases: ['chuckle', 'funni'], + help: "Spread the happiness with {{p}}laugh!", + meta: { + category: 'Social', + description: "Let everyone know you're dying of laughter", + syntax: '`laugh`', + extra: null + }, + async execute(message, msg, args, cmd, prefix, mention, client) { + let savess = await Saves.findOne({name: 'laugh'}) ? await Saves.findOne({name: 'laugh'}) : new Saves({name: 'laugh'}); + let saves = savess.saves; + if (!args.length) {return message.channel.send(new Discord.MessageEmbed() + .setTitle(`${message.guild ? message.member.displayName : message.author.username} is dying of laughter!`) + .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) + .setColor('5eedc6') + );} + if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { + if (!args[1]) {return message.channel.send('oi there cunt, give me a link of an image to add!');} + let tu = await UserData.findOne({uid: message.author.id}); + if ((!tu || !tu.developer) && !client.misc.savers.includes(message.author.id)) {return message.reply("You must be a Luno Developer in order to add new laugh GIFs.");} + let e = true; + let id; + while (e === true) {id = makeId(6); if (!saves.has(id)) {e = false;}} + args.shift(); + saves.set(id, args.join(" ").trim()); + savess.saves = saves; + savess.save(); + return message.channel.send("Save added!"); + } + } +}; \ No newline at end of file diff --git a/commands/social/run.js b/commands/social/run.js new file mode 100644 index 0000000..4b98d7c --- /dev/null +++ b/commands/social/run.js @@ -0,0 +1,38 @@ +const Discord = require('discord.js'); +const Saves = require('../../models/saves'); +const UserData = require('../../models/user'); +const makeId = require('../../util/makeid'); + +module.exports = { + name: "run", + aliases: ['run', 'runaway'], + help: "Escape from something or someone with {{p}}run!", + meta: { + category: 'Social', + description: "Get out of an awkward situation", + syntax: '`run`', + extra: null + }, + async execute(message, msg, args, cmd, prefix, mention, client) { + let savess = await Saves.findOne({name: 'run'}) ? await Saves.findOne({name: 'run'}) : new Saves({name: 'run'}); + let saves = savess.saves; + if (!args.length) {return message.channel.send(new Discord.MessageEmbed() + .setTitle(`${message.guild ? message.member.displayName : message.author.username} ran away!`) + .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) + .setColor('add8e6') + );} + if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { + if (!args[1]) {return message.channel.send('oi there cunt, give me a link of an image to add!');} + let tu = await UserData.findOne({uid: message.author.id}); + if ((!tu || !tu.developer) && !client.misc.savers.includes(message.author.id)) {return message.reply("You must be a Luno Developer in order to add new running GIFs.");} + let e = true; + let id; + while (e === true) {id = makeId(6); if (!saves.has(id)) {e = false;}} + args.shift(); + saves.set(id, args.join(" ").trim()); + savess.saves = saves; + savess.save(); + return message.channel.send("I did it! Are you proud of me Senpai?"); + } + } +}; \ No newline at end of file diff --git a/commands/social/simp.js b/commands/social/simp.js new file mode 100644 index 0000000..94b2a6e --- /dev/null +++ b/commands/social/simp.js @@ -0,0 +1,56 @@ +const Discord = require('discord.js'); +const Saves = require('../../models/saves'); +const UserData = require('../../models/user'); +const makeId = require('../../util/makeid'); + +module.exports = { + name: "simp", + help: "Show your love for someone with `{{p}}simp @person`!", + aliases: ['simp', 'love'], + meta: { + category: 'Social', + description: "Simp for you're senpai", + syntax: '`simp <@user>`', + extra: null + }, + async execute(message, msg, args, cmd, prefix, mention, client) { + let savess = await Saves.findOne({name: 'simp'}) ? await Saves.findOne({name: 'simp'}) : new Saves({name: 'simp'}); + let saves = savess.saves; + if (!args.length) { + let name = message.guild ? message.member.displayName : message.author.username; + return message.channel.send(message.guild ? new Discord.MessageEmbed() + .setTitle(`${name} is feeling lonely..maybe you should simp for them!`) + .setThumbnail(message.author.avatarURL({size: 2048})) + .setDescription(`Fall madly in love with someone with \`${prefix}simp @${name}\`!`) + .setColor('ffb6c1') + .setFooter('Luno', client.user.avatarURL()) + .setTimestamp() + : "Only my mommy Crescent can simp for me." + );} + if (mention && args[0].match(/^<@(?:!?)(?:\d+)>$/)) { + if (!message.guild) {return message.reply("Only my mommy Crescent can simp for me.");} + if (!message.guild.members.cache.has(mention.id)) {return message.reply("They already left you. Get over it.");} + if (message.author.id === mention.id) {return message.reply("You can't simp for yourself you lonely fuck.");} + let name = message.guild ? message.member.displayName : message.author.username; + let uname = message.guild.members.cache.get(mention.id).displayName; + return message.channel.send(new Discord.MessageEmbed() + .setAuthor(`${message.guild ? message.member.displayName : message.author.username} falls madly in love with ${message.guild.members.cache.get(mention.id).displayName}..what a simp.`, message.author.avatarURL()) + .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) + .setColor('ffb6c1') + ); + } + if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { + if (!args[1]) {return message.channel.send('oi there cunt, give me a link of an image to add!');} + let tu = await UserData.findOne({uid: message.author.id}); + if ((!tu || !tu.developer) && !client.developers.includes(message.author.id) && !client.misc.savers.includes(message.author.id)) {return message.reply("You must be a Luno Developer in order to add new simping GIFs.");} + let e = true; + let id; + while (e === true) {id = makeId(6); if (!saves.has(id)) {e = false;}} + args.shift(); + saves.set(id, args.join(" ").trim()); + savess.saves = saves; + savess.save(); + return message.channel.send("I did it! Are you proud of me senpai?"); + } + } +}; \ No newline at end of file diff --git a/commands/social/smile.js b/commands/social/smile.js new file mode 100644 index 0000000..d59740c --- /dev/null +++ b/commands/social/smile.js @@ -0,0 +1,38 @@ +const Discord = require('discord.js'); +const Saves = require('../../models/saves'); +const UserData = require('../../models/user'); +const makeId = require('../../util/makeid'); + +module.exports = { + name: "smile", + aliases: ['grin'], + help: "Spread the happiness with {{p}}smile!", + meta: { + category: 'Social', + description: "Show everyone just how happy you are!", + syntax: '`smile`', + extra: null + }, + async execute(message, msg, args, cmd, prefix, mention, client) { + let savess = await Saves.findOne({name: 'smile'}) ? await Saves.findOne({name: 'smile'}) : new Saves({name: 'smile'}); + let saves = savess.saves; + if (!args.length) {return message.channel.send(new Discord.MessageEmbed() + .setTitle(`${message.guild ? message.member.displayName : message.author.username} has a big smile on their face!`) + .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) + .setColor('00cd00') + );} + if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { + if (!args[1]) {return message.channel.send('oi there cunt, give me a link of an image to add!');} + let tu = await UserData.findOne({uid: message.author.id}); + if ((!tu || !tu.developer) && !client.misc.savers.includes(message.author.id)) {return message.reply("You must be a Luno Developer in order to add new smile GIFs.");} + let e = true; + let id; + while (e === true) {id = makeId(6); if (!saves.has(id)) {e = false;}} + args.shift(); + saves.set(id, args.join(" ").trim()); + savess.saves = saves; + savess.save(); + return message.channel.send("Save added!"); + } + } +}; \ No newline at end of file diff --git a/commands/social/spank.js b/commands/social/spank.js new file mode 100644 index 0000000..d0c2f87 --- /dev/null +++ b/commands/social/spank.js @@ -0,0 +1,53 @@ +const Discord = require('discord.js'); + +const Saves = require('../../models/saves'); +const UserData = require('../../models/user'); +const VC = require('../../models/vscount'); + +const makeId = require('../../util/makeid'); + +module.exports = { + name: "spank", + help: "Tell someone they're being a little too naughty :3 by mentioning someone to spank!", + meta: { + category: 'Social', + description: "Give someone a spanking :v", + syntax: '`spank <@user>`', + extra: null + }, + async execute(message, msg, args, cmd, prefix, mention, client) { + let savess = await Saves.findOne({name: 'spank'}) ? await Saves.findOne({name: 'spank'}) : new Saves({name: 'spank'}); + let saves = savess.saves; + if (!args.length) {return message.channel.send("You have to mention someone to spank!");} + if (mention && args[0].match(/^<@(?:!?)(?:\d+)>$/)) { + if (!message.guild) {return message.reply("Please make sure you're in a server so you can mention someone other than me to spank!");} + if (!message.guild.members.cache.has(mention.id)) {return message.reply("That user is not in this server!");} + if (message.author.id === mention.id) {return message.reply("You turn around and... whoop your own ass? Nah, I don't think it really works.");} + let spanks = await VC.findOne({uid: message.author.id, countOf: 'spank'}) || new VC({uid: message.author.id, countOf: 'spank'}); + spanks.against[mention.id] = spanks.against[mention.id] ? spanks.against[mention.id] + 1 : 1; + spanks.total++; + spanks.markModified(`against.${mention.id}`); + spanks.save(); + return message.channel.send(new Discord.MessageEmbed() + .setAuthor(`${message.guild ? message.member.displayName : message.author.username} gives ${message.guild.members.cache.get(mention.id).displayName} a spank!`, message.author.avatarURL()) + .setDescription(`You've spanked them **${spanks.against[mention.id] === 1 ? 'once' : `${spanks.against[mention.id]} times!`}**`) + .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) + .setColor('52c7bb') + .setFooter(`${spanks.total} spank${spanks.total === 1 ? '' : 's'} total`) + ); + } + if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { + if (!args[1]) {return message.channel.send('oi there cunt, give me a link of an image to add!');} + let tu = await UserData.findOne({uid: message.author.id}); + if ((!tu || !tu.developer) && !client.misc.savers.includes(message.author.id)) {return message.reply("You must be a Luno Developer in order to add new spank GIFs.");} + let e = true; + let id; + while (e === true) {id = makeId(6); if (!saves.has(id)) {e = false;}} + args.shift(); + saves.set(id, args.join(" ").trim()); + savess.saves = saves; + savess.save(); + return message.channel.send("Save added!"); + } + } +}; \ No newline at end of file diff --git a/commands/social/wink.js b/commands/social/wink.js new file mode 100644 index 0000000..2d56c1f --- /dev/null +++ b/commands/social/wink.js @@ -0,0 +1,56 @@ +const Discord = require('discord.js'); +const Saves = require('../../models/saves'); +const UserData = require('../../models/user'); +const makeId = require('../../util/makeid'); + +module.exports = { + name: "wink", + help: "Wink at someone with `{{p}}wink @person`", + aliases: ['wink'], + meta: { + category: 'Social', + description: "Wink at someone cutely", + syntax: '`wink <@user>`', + extra: null + }, + async execute(message, msg, args, cmd, prefix, mention, client) { + let savess = await Saves.findOne({name: 'wink'}) ? await Saves.findOne({name: 'wink'}) : new Saves({name: 'wink'}); + let saves = savess.saves; + if (!args.length) { + let name = message.guild ? message.member.displayName : message.author.username; + return message.channel.send(message.guild ? new Discord.MessageEmbed() + .setTitle(`${name} is feeling flirty, maybe you should give them a wink!`) + .setThumbnail(message.author.avatarURL({size: 2048})) + .setDescription(`Give them a little wink with \`${prefix}wink @${name}\`!`) + .setColor('8a2be2') + .setFooter('Luno', client.user.avatarURL()) + .setTimestamp() + : "W-why are you winking at me privately..do it in a server! " + );} + if (mention && args[0].match(/^<@(?:!?)(?:\d+)>$/)) { + if (!message.guild) {return message.reply("Please make sure you're in a server so you can mention someone other than me to hold hands with!");} + if (!message.guild.members.cache.has(mention.id)) {return message.reply("That user is not in this server!");} + if (message.author.id === mention.id) {return message.reply("Wow...you must really have a big ego to wink at yourself...");} + let name = message.guild ? message.member.displayName : message.author.username; + let uname = message.guild.members.cache.get(mention.id).displayName; + return message.channel.send(new Discord.MessageEmbed() + .setAuthor(`${message.guild ? message.member.displayName : message.author.username} winks at ${message.guild.members.cache.get(mention.id).displayName}!`, message.author.avatarURL()) + .setImage(String(Array.from(saves.values())[Math.floor(Math.random() * saves.size)])) + .setColor('8a2be2') + ); + } + if (['s', 'save', 'n', 'new', 'a', 'add'].includes(args[0].toLowerCase())) { + if (!args[1]) {return message.channel.send('oi there cunt, give me a link of an image to add!');} + let tu = await UserData.findOne({uid: message.author.id}); + if ((!tu || !tu.developer) && !client.developers.includes(message.author.id) && !client.misc.savers.includes(message.author.id)) {return message.reply("You must be a Luno Developer in order to add new winking GIFs.");} + let e = true; + let id; + while (e === true) {id = makeId(6); if (!saves.has(id)) {e = false;}} + args.shift(); + saves.set(id, args.join(" ").trim()); + savess.saves = saves; + savess.save(); + return message.channel.send("Save added!"); + } + } +}; \ No newline at end of file