From 244027de0d793057f95e7fa2ea5cc30dfaf27a30 Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Mon, 22 Aug 2022 18:30:13 +0200 Subject: [PATCH] fix: --- old stuff that ended up not working/bal.ts | 15 ------- old stuff that ended up not working/ban.ts | 23 ----------- old stuff that ended up not working/daily.ts | 16 -------- .../leaderboard.ts | 22 ---------- old stuff that ended up not working/mcform.ts | 16 -------- .../mcform_modal.ts | 40 ------------------- 6 files changed, 132 deletions(-) delete mode 100644 old stuff that ended up not working/bal.ts delete mode 100644 old stuff that ended up not working/ban.ts delete mode 100644 old stuff that ended up not working/daily.ts delete mode 100644 old stuff that ended up not working/leaderboard.ts delete mode 100644 old stuff that ended up not working/mcform.ts delete mode 100644 old stuff that ended up not working/mcform_modal.ts diff --git a/old stuff that ended up not working/bal.ts b/old stuff that ended up not working/bal.ts deleted file mode 100644 index 2c544a4..0000000 --- a/old stuff that ended up not working/bal.ts +++ /dev/null @@ -1,15 +0,0 @@ -const { commandModule, CommandType } = require('@sern/handler'); -import { publish } from "../src/plugins/publish"; -import { eco } from "../index" - -export default commandModule({ - name: 'bal', - type: CommandType.Both, - plugins: [publish(['1000400148289036298'])], - description: 'ECONOMIA: Mira el money money que tienes.', - //alias : [], - execute: async (ctx, args) => { - let money = await eco.fetchMoney(ctx.message.author.id); - ctx.reply(`Tienes ${money}vi$.`); - }, -}); \ No newline at end of file diff --git a/old stuff that ended up not working/ban.ts b/old stuff that ended up not working/ban.ts deleted file mode 100644 index 36df197..0000000 --- a/old stuff that ended up not working/ban.ts +++ /dev/null @@ -1,23 +0,0 @@ -const { commandModule, CommandType } = require('@sern/handler'); -const { ActionRowBuilder, ButtonBuilder, ButtonStyle, ModalBuilder, EmbedBuilder, TextInputBuilder, TextInputStyle, InteractionType } = require('discord.js'); -import { publish } from "../src/plugins/publish"; -import { ownerOnly } from "../src/plugins/ownerOnly" -import { ApplicationCommandType } from "discord.js"; - - -export default commandModule({ - name: 'ban', - type: CommandType.Both, - plugins: [publish(['1000400148289036298']), ownerOnly()], - description: 'ADMIN: Banea usuarios.', - options: [{name: 'usuario', required: true,description: 'menciona al usuario al que banear.',type: ApplicationCommandType.User}], - //alias : [], - execute: async (ctx, args, interaction, options, member) => { - const user = options[1] - if (ctx.message.member.roles.highest.position < member.roles.highest.position) - return ctx.reply({ - content: `❌ | No puedes banear a una persona superior a tí.` - }); - - } -}); \ No newline at end of file diff --git a/old stuff that ended up not working/daily.ts b/old stuff that ended up not working/daily.ts deleted file mode 100644 index b98bedc..0000000 --- a/old stuff that ended up not working/daily.ts +++ /dev/null @@ -1,16 +0,0 @@ -const { commandModule, CommandType } = require('@sern/handler'); -import { publish } from "../src/plugins/publish"; -import { eco } from "../index" - -export default commandModule({ - name: 'daily', - type: CommandType.Both, - plugins: [publish(['1000400148289036298'])], - description: 'ECONOMIA: Consigue tu dinero diario.', - //alias : [], - execute: async (ctx, args) => { - let add = eco.daily(ctx.author.id, false, 500); - if (add.cooldown) return ctx.reply(`Ya has conseguido tus dailys. Vuelve en ${add.time.days} días, ${add.time.hours} horas, ${add.time.minutes} minutos y ${add.time.seconds} segundos.`); - ctx.reply(`has conseguido ${add.amount}vi$ y tienes ${add.money}vi$ en total.`); - }, -}); \ No newline at end of file diff --git a/old stuff that ended up not working/leaderboard.ts b/old stuff that ended up not working/leaderboard.ts deleted file mode 100644 index 387b83c..0000000 --- a/old stuff that ended up not working/leaderboard.ts +++ /dev/null @@ -1,22 +0,0 @@ -const { commandModule, CommandType } = require('@sern/handler'); -import { publish } from "../src/plugins/publish"; -import { eco } from "../index" -const { EmbedBuilder } = require("discord.js") - -export default commandModule({ - name: 'leaderboard', - type: CommandType.Both, - plugins: [publish(['1000400148289036298'])], - description: 'ECONOMIA: Mira las personas que tienen más vi$!', - //alias : [], - execute: async (ctx, args) => { - let lb = await eco.leaderboard(false, 10); - const embed = new EmbedBuilder() - .setAuthor("Tabla") - .setColor("BLURPLE"); - lb.forEach(u => { - embed.addField(`${u.position}. ${ctx.client.users.cache.get(u.user).tag}`, `Dinero: ${u.money}vi$ 💸`); - }); - await ctx.reply(embed); - }, -}); \ No newline at end of file diff --git a/old stuff that ended up not working/mcform.ts b/old stuff that ended up not working/mcform.ts deleted file mode 100644 index 978a8b1..0000000 --- a/old stuff that ended up not working/mcform.ts +++ /dev/null @@ -1,16 +0,0 @@ -const { commandModule, CommandType } = require('@sern/handler'); -const { ActionRowBuilder, ButtonBuilder, ButtonStyle, ModalBuilder, EmbedBuilder, TextInputBuilder, TextInputStyle, InteractionType } = require('discord.js'); -import { publish } from "../src/plugins/publish"; -import { ownerOnly } from "../src/plugins/ownerOnly" - -export default commandModule({ - type: CommandType.Modal, - plugins: [], - description: 'Envia el formulario para entrar al servidor.', - //alias : [], - async execute (modal) { - const value = modal.fields.getTextInputValue('mcUsernameInput'); - await modal.reply({content: 'Enviado!, Gracias por utilizar tu Mona Lisa de confianza\n~Sr Izan, 2022', ephemeral: true}) - modal.client.guilds.cache.get("928018226330337280").channels.cache.get("998195363376803850").send(`Solicitud enviada por ${modal.user}.\nUsername de Minecraft: ${value}`); - } -}); \ No newline at end of file diff --git a/old stuff that ended up not working/mcform_modal.ts b/old stuff that ended up not working/mcform_modal.ts deleted file mode 100644 index 9041c28..0000000 --- a/old stuff that ended up not working/mcform_modal.ts +++ /dev/null @@ -1,40 +0,0 @@ -const { commandModule, CommandType } = require('@sern/handler'); -const { ActionRowBuilder, ButtonBuilder, ButtonStyle, ModalBuilder, EmbedBuilder, TextInputBuilder, TextInputStyle, InteractionType } = require('discord.js'); -import { publish } from "../src/plugins/publish"; -import { ownerOnly } from "../src/plugins/ownerOnly" -const langChooser = new EmbedBuilder() - .setColor('#00ff00') - .setTitle('Language chooser') - .setDescription('Choose the language to show') - .addFields({name: ':flag_es: Spanish', value: 'click the flag', inline: true}, {name: ':flag_gb: English', value: 'click the flag', inline: true}) - .setFooter({text: 'shoutout to tormentarosa who found the english flag'}); - - -export default commandModule({ - name: 'mcform', - type: CommandType.Both, - plugins: [publish({ guildIds: ['1000400148289036298', '928018226330337280'] })], - description: 'Envia el formulario para entrar al servidor.', - //alias : [], - execute: async (ctx, args, interaction) => { - const modal = new ModalBuilder() - .setCustomId('mcform') - .setTitle('Formulario para entrar al servidor'); - - // Create the text input components - const input = new TextInputBuilder() - .setCustomId('mcUsernameInput') - // The label is the prompt the user sees for this input - .setLabel("Cuál es tu nombre de usuario de Minecraft?") - // Short means only a single line of text - .setStyle(TextInputStyle.Short); - - // An action row only holds one text input, - // so you need one action row per text input. - const usernameActionRow = new ActionRowBuilder().addComponents(input); - - // Add inputs to the modal - modal.addComponents([usernameActionRow]); - await ctx.interaction.showModal(modal); - } -}); \ No newline at end of file