Skip to content

Commit 5c5f94c

Browse files
committed
no mandar mensaje si es un link vacio
1 parent 8346132 commit 5c5f94c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ class Bot {
131131
// no soportamos ese servicio
132132
cobaltResult.error.code === "error.api.link.invalid" ||
133133
// no soportamos este tipo de link
134-
cobaltResult.error.code === "error.api.link.unsupported"
134+
cobaltResult.error.code === "error.api.link.unsupported" ||
135+
// no hay nada en este link
136+
cobaltResult.error.code === "error.api.fetch.empty"
135137
) {
136138
continue;
137139
}

0 commit comments

Comments
 (0)