Update action flow for detected links to prevent bot/program crashing.
Main / build-and-push-docker-image (20.x) (push) Successful in 4m9s
Main / build-and-push-docker-image (20.x) (push) Successful in 4m9s
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user