feat: fun and passion are modifiable
This commit is contained in:
parent
4f0b35c7ad
commit
b995899870
30
index.js
30
index.js
@ -1,5 +1,5 @@
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
import path, { parse } from "path";
|
||||
import { Client, GatewayIntentBits, Partials } from "discord.js";
|
||||
const {
|
||||
TOKEN,
|
||||
@ -735,6 +735,34 @@ client.on("messageCreate", async (message) => {
|
||||
}
|
||||
}
|
||||
|
||||
if (args[0] === "fun") {
|
||||
if (
|
||||
args.length < 2 ||
|
||||
isNaN(args[1]) ||
|
||||
parseInt(args[1]) < 1 ||
|
||||
parseInt(args[1]) > 10
|
||||
)
|
||||
return await message.reply(
|
||||
`Current FUN value: ${funInput}\nUsage: \`fun <1-10>\``
|
||||
);
|
||||
funInput = parseInt(args[1]);
|
||||
return await message.reply(`FUN value set to ${funInput}`);
|
||||
}
|
||||
|
||||
if (args[0] === "passion") {
|
||||
if (
|
||||
args.length < 2 ||
|
||||
isNaN(args[1]) ||
|
||||
parseInt(args[1]) < 1 ||
|
||||
parseInt(args[1]) > 5
|
||||
)
|
||||
return await message.reply(
|
||||
`Current PASSION: ${passionInput}\nUsage: \`passion <1-5>\``
|
||||
);
|
||||
passionInput = parseInt(args[1]);
|
||||
return await message.reply(`PASSION set to ${passionInput}`);
|
||||
}
|
||||
|
||||
if (args[0] === "simulateteams") {
|
||||
await message.reply("Simulating teams...");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user