Browse Source

Return if usersWith command has no parameters

master
Abheek Dhawan 4 years ago
parent
commit
80e50d9712
  1. 4
      bot.js

4
bot.js

@ -536,6 +536,10 @@ async function helpMessage(message) {
} }
async function usersWith(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) { if (message.content.split(" ")[1].length < 3) {
message.reply("query must contain at least 3 characters!") message.reply("query must contain at least 3 characters!")
return; return;

Loading…
Cancel
Save