This commit is contained in:
@ -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.`
|
||||
);
|
||||
};
|
||||
|
@ -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,
|
||||
|
@ -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;
|
||||
|
@ -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.`
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user