This commit is contained in:
2022-08-22 18:30:13 +02:00
parent 49320cf266
commit 244027de0d
6 changed files with 0 additions and 132 deletions

View File

@@ -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$.`);
},
});

View File

@@ -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í.`
});
}
});

View File

@@ -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.`);
},
});

View File

@@ -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);
},
});

View File

@@ -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}`);
}
});

View File

@@ -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);
}
});