abstract away prefix + ev cmd
All checks were successful
Deploy bot / build-and-deploy (push) Successful in 14s
All checks were successful
Deploy bot / build-and-deploy (push) Successful in 14s
This commit is contained in:
@ -1,12 +1,17 @@
|
||||
exports.name = "cb";
|
||||
exports.description =
|
||||
":crossed_swords: Calculate calamity blade damage taking in to account projectile speed.";
|
||||
exports.usage = "<<cb <damage> <ups> [projectile speed]";
|
||||
exports.example = "<<cb 10000 250 10000";
|
||||
exports.usage = "CLIENT_PREFIX:cb <damage> <ups> [projectile speed]";
|
||||
exports.example = "CLIENT_PREFIX:cb 10000 250 10000";
|
||||
exports.hidden = false;
|
||||
exports.run = (client, message, args) => {
|
||||
if (!args[0] || !args[1])
|
||||
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 cb = parseInt(args[0]);
|
||||
let ups = parseInt(args[1]);
|
||||
if (isNaN(cb) || isNaN(ups))
|
||||
|
Reference in New Issue
Block a user