adjusted args a bit

This commit is contained in:
rhearmas 2019-12-22 21:46:19 -05:00
parent a5e1ef65c9
commit 20e51cf8a7

View file

@ -38,9 +38,9 @@ function randomItem(array) {
exports.run = async (client, message, args, level) => { exports.run = async (client, message, args, level) => {
message.delete(); message.delete();
if (args.length < 1) { if (!args[0]) {
message.delete(); message.delete();
return (await message.reply("Please specify something to ask of the magic 8-ball!")).delete(5000); return (await message.reply("text")).delete(5000);
} }
let response = randomItem(responses); let response = randomItem(responses);