xD
All checks were successful
Deploy bot / build-and-deploy (push) Successful in 14s

This commit is contained in:
2025-08-08 00:29:15 +02:00
parent 49cb0b37da
commit 45d2b2c352
4 changed files with 17 additions and 15 deletions

View File

@ -40,8 +40,8 @@ exports.run = (client, message, args) => {
);
message.channel.send(
`With **${hbPoints}** points in your hero boost, you will boost with a ${get_damage_multiplier(
`With **${hbPoints}** points in your hero boost, you will boost with a **${get_damage_multiplier(
hbPoints
).toFixed(4)} damage multiplier.`
).toFixed(4)}** damage multiplier.`
);
};

View File

@ -1,7 +1,7 @@
const { EmbedBuilder } = require("discord.js");
exports.name = "help";
exports.description =
":scroll: Shows this message. (this bot is a crude imitation of tbolt's better bot :P)";
":scroll: Shows this message and provides insight into other commands.";
exports.usage = "<<help [optional other command]";
exports.example = "<<help res";
exports.hidden = false;
@ -28,7 +28,9 @@ exports.run = (client, message, args) => {
}
);
} else {
client.commands.forEach((cmd) => {
[...client.commands.values()]
.sort((a, b) => (a.name > b.name ? 1 : -1))
.forEach((cmd) => {
if (cmd.hidden && message.author.id != client.ownerID) return;
embed.addFields({
name: cmd.name,

View File

@ -1,5 +1,5 @@
exports.name = "refetch";
exports.description = ":ninja: Refetch user react data. (shiro)";
exports.description = ":ninja: Refetch user react data.";
exports.usage = "<<refetch";
exports.example = "<<refetch";
exports.hidden = true;

View File

@ -34,15 +34,15 @@ exports.hidden = false;
exports.run = (client, message, args) => {
if (!args[0])
return message.channel.send("Not enough arguments, consult <<help.");
let hbPoints = parseInt(args[0]);
if (isNaN(hbPoints))
let tbPoints = parseInt(args[0]);
if (isNaN(tbPoints))
return message.channel.send(
"Given argument is not a number. Consult <<help."
);
message.channel.send(
`With **${hbPoints}** points in your tower boost, you will boost towers with a ${get_damage_multiplier(
hbPoints
).toFixed(4)} multiplier.`
`With **${tbPoints}** points in your tower boost, you will boost towers with a **${get_damage_multiplier(
tbPoints
).toFixed(4)}** multiplier.`
);
};