Skip to content

Commit

Permalink
arreglado comando pack
Browse files Browse the repository at this point in the history
  • Loading branch information
Trefu committed Jul 3, 2021
1 parent 3ad3ff3 commit 35e6dd3
Showing 1 changed file with 31 additions and 10 deletions.
41 changes: 31 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,19 @@ const bot = new Discord.Client();
const TOKEM = process.env.TOKEM_DISCORD;
var trainersContainer = [];
var trainerBot;
const { pokemonEmbed } = require("./assets/PokemonMsg");
const { Trainer } = require("./clases/Trainer");
const { prefix } = require("./config.json");
const { pack, start } = require("./commands.js");
const {
pokemonEmbed
} = require("./assets/PokemonMsg");
const {
Trainer
} = require("./clases/Trainer");
const {
prefix
} = require("./config.json");
const {
pack,
start
} = require("./commands.js");
const {
pokemons,
commandsList,
Expand All @@ -18,8 +27,13 @@ const {
printPokemonsStats,
pokemonFormater,
} = require("./utils.js");
const { TrainerBot } = require("./clases/TrainerBot.js");
const { natures, Pokemon } = require("./clases/Pokemon");
const {
TrainerBot
} = require("./clases/TrainerBot.js");
const {
natures,
Pokemon
} = require("./clases/Pokemon");

bot.on("ready", async () => {
bot.user.setStatus("dnd");
Expand Down Expand Up @@ -64,6 +78,8 @@ bot.on("message", async (msg) => {
msg.channel.send(pokemonFind.showMoves());
break;
case "pack":
if (!msg.channel.nsfw) return msg.channel.send("Solo en canales Nsfw");
let packEndpoint
const packMethods = [
"boobs",
"pussy",
Expand All @@ -75,9 +91,14 @@ bot.on("message", async (msg) => {
"cumshots",
"hentai",
];
var packEndpoint = args[0];
if (!msg.channel.nsfw) return msg.channel.send("Solo en canales Nsfw");
if (!packEndpoint) packEndpoint = arrRandomValue(packMethods);
if (!args[0]) {
packEndpoint = arrRandomValue(packMethods)
} else {
if (!packMethods.includes(args[0])) {
return msg.channel.send(`Comandos de pack: \n${packMethods.join("\n")}`)
}
packEndpoint = args[0];
}
pack(packEndpoint, msg);
break;

Expand Down Expand Up @@ -130,4 +151,4 @@ bot.on("message", async (msg) => {
}
});

bot.login(TOKEM);
bot.login(TOKEM);

0 comments on commit 35e6dd3

Please sign in to comment.