diff --git a/bot.js b/bot.js index ed4ddce..7c9e922 100644 --- a/bot.js +++ b/bot.js @@ -536,6 +536,10 @@ async function helpMessage(message) { } async function usersWith(message) { + if (message.content.split(" ").length < 2) { + message.reply("query must contain at least 3 characters!") + return; + } if (message.content.split(" ")[1].length < 3) { message.reply("query must contain at least 3 characters!") return;