You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Built for open-source community groups that get flooded with spam-bot join reque
13
13
-**Admin override buttons** on every request: **👮 直接通过** (approve now) and **🚫 举报并封禁** (decline + permanent ban).
14
14
-**Multiple groups.** Guard several groups with one bot instance.
15
15
-**Auto-leaves unauthorized chats.** If the bot is added to any group/channel that isn't in its config (a guarded group, the required channel, a feed target, or the admin-log chat), it leaves immediately — so it can't be pulled into random groups. To add a new guarded group, put its id in `group_ids` first, then add the bot.
16
-
-**DM auto-reply.**A direct message to the bot (outside the verification flow) gets a single unified reply pointing the user back to the group + commands, instead of silence. Customizable via `private_reply`.
16
+
-**Lookup commands in DM (rate-limited).**The read-only lookup commands (`/pkg``/use``/bug``/news``/wiki``/bbs``/pkgs``/arm``/armpkgs`) also work in a **private chat with the bot**, capped at `private_query_per_min` per user per minute (default 3) to prevent abuse — guarded groups stay unlimited. Any other DM gets a unified auto-reply (customizable via `private_reply`).
17
17
-**Channel sock-puppet block (optional, `/bc`).** A message posted in a guarded group *on behalf of a channel* (a common spam/ban-evasion trick) is deleted and that channel is banned from posting. Admins toggle it with `/bc`, and manage a whitelist with `/bc allow|deny <channel id>` (`allow` also un-bans) — the toggle and whitelist **persist across restarts**. Anonymous group admins and the linked discussion channel are exempt. **Requires the bot's privacy mode to be OFF** (BotFather → disable group privacy) so it can see these messages.
18
18
-**Moderation commands** (reply to a message, admins only): `/sb` = delete + kick (rejoinable), `/ban` = delete + permanent ban, `/warn` = strike a user (auto-kick after `warn_limit`, default 3 — counts persist across restarts), `/clearwarn` = clear a user's strikes.
|`notify_ttl_seconds`| auto-delete the bot's group messages after N s (`0`→60, negative→never) |
83
83
|`lookup_ttl_seconds`| auto-delete a lookup command (`/pkg``/use``/bug``/news``/wiki``/bbs``/distro`) and its answer after N s (unset→180 = 3 min, on; `0`/negative→off). Admins toggle/adjust at runtime with `/autodel`|
84
84
|`warn_limit`|`/warn` strikes before a user is auto-kicked (default 3) |
85
+
|`private_query_per_min`| lookup queries a user may run per minute in a **private chat** (default 3; guarded groups are unlimited) |
85
86
|`admin_log_chat_id`| optional chat that receives a line per moderation / failed-approve event |
0 commit comments