护栏与审查

jev_antispam_bot

@backmeupplz4TypeScriptMIT更新于 2026-09-19可当场跑

基于 TypeSafe Jev 的简易 grammY Telegram 反垃圾消息机器人

英文原文

Minimal grammY Telegram anti-spam bot powered by TypeSafe Jev

backmeupplz/jev_antispam_bot

它在哪儿调用了 Jev

const TYPESAFE_URL = "https://api.typesafe.ai/v1/systemone";

src/spam.ts:1

链接指向我们抓取当天的那个 commit,行号是准的。

它问 Jev 的问题

下面是从这个项目源码里原样取出来的 question 组合。

取自 src/spam.ts:10

  1. unsolicited_promotion是/否

    Is `message` unsolicited promotional spam that a reasonable Telegram group moderator should delete?

  2. profile_bait是/否

    Is `message` spam that tries to funnel readers to the sender's bio, profile, private messages, channel, or hidden link?

  3. scam_or_phishing是/否

    Is `message` a scam, phishing attempt, wallet-drainer lure, fake support message, impersonation, or fraudulent giveaway?

  4. disruptive_spam是/否

    Is `message` obvious disruptive Telegram spam that contributes no legitimate value to the group?

  5. bot_promotion是/否

    Does `message` unsolicitedly advertise or invite group members to use another Telegram bot, game bot, channel, or mini app?

  6. adult_dm_bait是/否

    Does `message` solicit sexual content, dating contact, or private messages from group members?

  7. gambling_promotion是/否

    Does `message` advertise or lure readers to a casino, betting, or gambling website?

  8. easy_money_bait是/否

    Does `message` use an unsolicited easy-money or implausible earnings claim as click bait?

用你自己的内容跑一遍

代码
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    unsolicited_promotion: { type: 'boolean', instructions: 'Is `message` unsolicited promotional spam that a reasonable Telegram group moderator should delete?' },
    profile_bait: { type: 'boolean', instructions: 'Is `message` spam that tries to funnel readers to the sender\'s bio, profile, private messages, channel, or hidden link?' },
    scam_or_phishing: { type: 'boolean', instructions: 'Is `message` a scam, phishing attempt, wallet-drainer lure, fake support message, impersonation, or fraudulent giveaway?' },
    disruptive_spam: { type: 'boolean', instructions: 'Is `message` obvious disruptive Telegram spam that contributes no legitimate value to the group?' },
    bot_promotion: { type: 'boolean', instructions: 'Does `message` unsolicitedly advertise or invite group members to use another Telegram bot, game bot, channel, or mini app?' },
    adult_dm_bait: { type: 'boolean', instructions: 'Does `message` solicit sexual content, dating contact, or private messages from group members?' },
    gambling_promotion: { type: 'boolean', instructions: 'Does `message` advertise or lure readers to a casino, betting, or gambling website?' },
    easy_money_bait: { type: 'boolean', instructions: 'Does `message` use an unsolicited easy-money or implausible earnings claim as click bait?' },
  },
});

同类的其他项目