fix(command): 🐛 make follow
command work again without params
This commit is contained in:
@@ -193,7 +193,15 @@ function command(username, message) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case "follow":
|
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;
|
break;
|
||||||
case "come":
|
case "come":
|
||||||
switch (message_parts[1]) {
|
switch (message_parts[1]) {
|
||||||
|
Reference in New Issue
Block a user