Moved env variables into function.

This commit is contained in:
2026-01-26 19:34:25 -05:00
parent 1361fab0ad
commit d816568522
6 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -12,13 +12,13 @@ const composer = new Composer<Context>();
const feature = composer.chatType(["group", "supergroup"]);
const mutationKey = process.env.GRAPHQL_MUTATION_KEY || "";
/**
* What triggers this feature and adds to the log when it has been triggered.
* The trigger is anytime an embedded url is detected.
*/
feature.on("message::url", logHandle("embed-check"), async (ctx: Context) => {
const mutationKey = process.env.GRAPHQL_MUTATION_KEY || "";
await urql.mutation(increment, { trigger: true, mutationKey });
if (ctx.chat && ctx.msg) {