Guardrails & review

jev_antispam_bot

@backmeupplz4TypeScriptMITupdated 2026-09-19runnable

Minimal grammY Telegram anti-spam bot powered by TypeSafe Jev

backmeupplz/jev_antispam_bot

Where it calls Jev

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

src/spam.ts:1

The link points at the commit we read, so the line number still holds.

What it asks Jev

These question sets are lifted from this project's source exactly as written.

from src/spam.ts:10

  1. unsolicited_promotiontrue/false

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

  2. profile_baittrue/false

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

  3. scam_or_phishingtrue/false

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

  4. disruptive_spamtrue/false

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

  5. bot_promotiontrue/false

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

  6. adult_dm_baittrue/false

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

  7. gambling_promotiontrue/false

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

  8. easy_money_baittrue/false

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

Run it on your own text

The code
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?' },
  },
});

Other projects in this category