From 1a83ce44ac76ac2d13a4bbbf0bf2abbc43474f36 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 28 Mar 2023 16:16:47 -0500 Subject: [PATCH] Rearrange entrypoint.example.ts in a more sensible way --- entrypoint.example.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/entrypoint.example.ts b/entrypoint.example.ts index 57c3087..26f1a15 100755 --- a/entrypoint.example.ts +++ b/entrypoint.example.ts @@ -16,12 +16,12 @@ import { for await (const msg of readStdin()) { const result = await pipeline(msg, [ noopPolicy, - [hellthreadPolicy, { limit: 100 }], - [antiDuplicationPolicy, { ttl: 60000, minLength: 50 }], - [rateLimitPolicy, { whitelist: ['127.0.0.1'] }], - [pubkeyBanPolicy, ['e810fafa1e89cdf80cced8e013938e87e21b699b24c8570537be92aec4b12c18']], [keywordPolicy, ['https://t.me/']], [regexPolicy, /(🟠|🔥|😳)ChtaGPT/i], + [pubkeyBanPolicy, ['e810fafa1e89cdf80cced8e013938e87e21b699b24c8570537be92aec4b12c18']], + [hellthreadPolicy, { limit: 100 }], + [rateLimitPolicy, { whitelist: ['127.0.0.1'] }], + [antiDuplicationPolicy, { ttl: 60000, minLength: 50 }], ]); writeStdout(result);