From e74d79612443dfcafb7cd625441d13fe98bb5c87 Mon Sep 17 00:00:00 2001 From: jay Date: Sat, 16 Jan 2021 13:50:35 +0500 Subject: [PATCH] fix(command): :bug: make `follow` command work again without params --- lib/plugins/command.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/plugins/command.js b/lib/plugins/command.js index eeb107b..aa25f3e 100644 --- a/lib/plugins/command.js +++ b/lib/plugins/command.js @@ -193,7 +193,15 @@ function command(username, message) { break; case "follow": - subcommand("go follow " + message_parts.slice(1).join(" ")) + switch (message_parts.length) { + case 1: + subcommand("go follow me") + break; + + default: + subcommand("go " + message) + break; + } break; case "come": switch (message_parts[1]) {