This commit is contained in:
@ -40,8 +40,8 @@ exports.run = (client, message, args) => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
message.channel.send(
|
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
|
hbPoints
|
||||||
).toFixed(4)} damage multiplier.`
|
).toFixed(4)}** damage multiplier.`
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
const { EmbedBuilder } = require("discord.js");
|
const { EmbedBuilder } = require("discord.js");
|
||||||
exports.name = "help";
|
exports.name = "help";
|
||||||
exports.description =
|
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.usage = "<<help [optional other command]";
|
||||||
exports.example = "<<help res";
|
exports.example = "<<help res";
|
||||||
exports.hidden = false;
|
exports.hidden = false;
|
||||||
@ -28,13 +28,15 @@ exports.run = (client, message, args) => {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
client.commands.forEach((cmd) => {
|
[...client.commands.values()]
|
||||||
if (cmd.hidden && message.author.id != client.ownerID) return;
|
.sort((a, b) => (a.name > b.name ? 1 : -1))
|
||||||
embed.addFields({
|
.forEach((cmd) => {
|
||||||
name: cmd.name,
|
if (cmd.hidden && message.author.id != client.ownerID) return;
|
||||||
value: cmd.description,
|
embed.addFields({
|
||||||
|
name: cmd.name,
|
||||||
|
value: cmd.description,
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
}
|
}
|
||||||
embed.setColor(0x00ff00);
|
embed.setColor(0x00ff00);
|
||||||
message.channel.send({ embeds: [embed] });
|
message.channel.send({ embeds: [embed] });
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
exports.name = "refetch";
|
exports.name = "refetch";
|
||||||
exports.description = ":ninja: Refetch user react data. (shiro)";
|
exports.description = ":ninja: Refetch user react data.";
|
||||||
exports.usage = "<<refetch";
|
exports.usage = "<<refetch";
|
||||||
exports.example = "<<refetch";
|
exports.example = "<<refetch";
|
||||||
exports.hidden = true;
|
exports.hidden = true;
|
||||||
|
@ -34,15 +34,15 @@ exports.hidden = false;
|
|||||||
exports.run = (client, message, args) => {
|
exports.run = (client, message, args) => {
|
||||||
if (!args[0])
|
if (!args[0])
|
||||||
return message.channel.send("Not enough arguments, consult <<help.");
|
return message.channel.send("Not enough arguments, consult <<help.");
|
||||||
let hbPoints = parseInt(args[0]);
|
let tbPoints = parseInt(args[0]);
|
||||||
if (isNaN(hbPoints))
|
if (isNaN(tbPoints))
|
||||||
return message.channel.send(
|
return message.channel.send(
|
||||||
"Given argument is not a number. Consult <<help."
|
"Given argument is not a number. Consult <<help."
|
||||||
);
|
);
|
||||||
|
|
||||||
message.channel.send(
|
message.channel.send(
|
||||||
`With **${hbPoints}** points in your tower boost, you will boost towers with a ${get_damage_multiplier(
|
`With **${tbPoints}** points in your tower boost, you will boost towers with a **${get_damage_multiplier(
|
||||||
hbPoints
|
tbPoints
|
||||||
).toFixed(4)} multiplier.`
|
).toFixed(4)}** multiplier.`
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user