From 0ecafafc9616624f591ca4d1e4674262c80c0d08 Mon Sep 17 00:00:00 2001 From: Supositware Date: Thu, 8 Sep 2022 17:28:48 +0200 Subject: [PATCH] owned --- commands/secret/s.js | 49 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/commands/secret/s.js b/commands/secret/s.js index bd4e4f08..397f37ff 100644 --- a/commands/secret/s.js +++ b/commands/secret/s.js @@ -1,4 +1,5 @@ import { SlashCommandBuilder } from 'discord.js'; +const { ownerId } = process.env; export default { data: new SlashCommandBuilder() @@ -7,13 +8,55 @@ export default { .addStringOption(option => option.setName('something') .setDescription('🤫') - .setRequired(true)), + .setRequired(true)) + .addStringOption(option => + option.setName('somethingelse') + .setDescription('🤫') + .setRequired(false)), category: 'secret', - async execute(interaction, args) { + async execute(interaction, args, client) { const command = args.something; if (command === 'levertowned') { - interaction.reply('Hello buddy bro <:youngtroll:488559163832795136> <@434762632004894746>'); + return interaction.reply('Hello buddy bro <:youngtroll:488559163832795136> <@434762632004894746>'); + } + else if (command === 'owned') { + const epicMessage = ['You cheated not ONLY the GAME, BUT yourself. You didn\'t GROW. You didn\'t IMPROVE. You TOOK a SHORTCUT and gained NOTHING. You EXPERIENCED a HOLLOW victory. NOTHING WAS risked and NOTHING WAS gained. It\'s SAD that you don\'t KNOW the DIFFERENCE.', 'TROLOLOLO OWNED EPIC STYLE', 'Owned noob', 'HAHA BRO YOU JUST GOT OOOOOOOOWNED HAHAHAHAHHAHA NOOOB NOOOOB NOOOB OWNED NOOB <:youngtroll:488559163832795136>', ' op op op owned epic style ', 'HAHAHA BRO YOU HAVE BEEN OWNED TROLL BRO STYLE', 'OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED YOU JUST GOT OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED YOU JUST GOT OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED YOU JUST GOT OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED OWNED YOU JUST GOT OWNED', 'OWNED\nFUCKING OWNED', 'OWNED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!', 'You just got owned ', 'you just been....epicly trolled <:trole:241942993022615552>', 'I hope you have a nice day, just a simple reminder that I love you and I think you\'re pretty epic!!!!']; + + const ownedMessage = epicMessage[Math.floor(Math.random() * epicMessage.length)]; + let owned = args.somethingelse ? interaction.guild.members.cache.find(u => u.user.username.toLowerCase().includes(args.somethingelse.toLowerCase())) : null; + + if (interaction.isMessage) { + if (interaction.mentions.members.first()) { + console.log('test'); + owned = interaction.mentions.members.first(); + } + } + + await interaction.guild.members.fetch(); + + if (args.somethingelse) { + + if (owned.id === client.user.id) { + return interaction.reply('You really thought you could own me?, pathetic...'); + } + else if (owned.id === ownerId) { + return interaction.reply('You really thought you could own him?, pathetic...'); + } + else if (owned.id === '286054184623538177' || owned.id === '172112210863194113') { + owned = interaction.user; + } + + + if (ownedMessage === epicMessage[0]) { + return interaction.reply(ownedMessage); + } + + return interaction.reply(`${owned}, ${ownedMessage}`); + } + else { + return interaction.reply(ownedMessage); + } } }, };