abstract away prefix + ev cmd
All checks were successful
Deploy bot / build-and-deploy (push) Successful in 14s

This commit is contained in:
2025-08-08 17:03:24 +02:00
parent a57aa17deb
commit 1009165751
14 changed files with 226 additions and 51 deletions

View File

@ -27,16 +27,24 @@ function get_damage_multiplier(stat_val) {
exports.name = "hb";
exports.description = ":muscle: Calculate hero boost's damage multiplier.";
exports.usage = "<<hb <points>";
exports.example = "<<hb 5000";
exports.usage = "CLIENT_PREFIX:hb <points>";
exports.example = "CLIENT_PREFIX:hb 5000";
exports.hidden = false;
exports.run = (client, message, args) => {
if (!args[0])
return message.channel.send("Not enough arguments, consult <<help.");
return message.channel.send(
"Not enough arguments, consult CLIENT_PREFIX:help.".replaceAll(
"CLIENT_PREFIX:",
client.prefix
)
);
let hbPoints = parseInt(args[0]);
if (isNaN(hbPoints))
return message.channel.send(
"Given argument is not a number. Consult <<help."
"Given argument is not a number. Consult CLIENT_PREFIX:help.".replaceAll(
"CLIENT_PREFIX:",
client.prefix
)
);
message.channel.send(