Update action flow for detected links to prevent bot/program crashing.
Main / build-and-push-docker-image (20.x) (push) Successful in 4m9s

This commit is contained in:
Lucid
2026-04-01 17:11:37 -04:00
parent f72b04d49b
commit 705bb73f19
5 changed files with 21 additions and 17 deletions
+3 -2
View File
@@ -25,8 +25,6 @@ feature.hears(
if (ctx.chat && ctx.msg) {
const username = ctx.msg.from?.username;
// Deletes the offending message.
ctx.msg.delete();
return await urql
.mutation(increment, { link: 1, mutationKey })
@@ -43,6 +41,9 @@ feature.hears(
const groupID = ctx.chat?.id.toString() || "";
const groupUsername = ctx.chat?.username || "";
// Deletes the offending message.
ctx.msg.delete();
return await urql
.mutation(addGroup, {
groupID,