| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This repository maintains every nmBot keyword auto-reply for the Syncnext Telegram group.
nmBot stores an auto-reply in two connected layers:
Both layers are tracked together. A keyword rule is not complete unless every ID in its replyMessageIds exists in messageTemplates.
nmbot-state.json must have snapshot.complete: true before it is treated as the maintenance baseline. The tracked state was bootstrapped with a complete nmBot read on 2026-08-02.
If several nmBot accounts are stored in the browser, set sessionUsername in config.json. The tool fails on ambiguity instead of using the first account.
From this repository:
python3 nmbot_maintain.py pullThe command fetches both nmBot resources:
It then writes the complete rule list to nmbot-state.json and externalizes each text template to replies/template-<id>.txt. Existing unrelated files in replies/ are not deleted automatically.
Review the resulting Git diff before treating it as the maintenance baseline.
python3 nmbot_maintain.py pull
git diff -- nmbot-state.json replies/Reply text is final user-facing Telegram content. Keep repository paths, test notes, and maintainer reasoning out of these files.
python3 nmbot_maintain.py validate
python3 -m unittest discover -s tests -vValidation checks schema version, group identity, unique positive IDs, text files, and every keyword-to-template reference.
python3 nmbot_maintain.py diffThe report separates local-only, remote-only, changed, and unchanged IDs for both resource types.
python3 nmbot_maintain.py apply --keyword-reply 123
python3 nmbot_maintain.py apply --message-template 43782Without --confirm, the command only confirms that the selected local and remote objects exist and differ. It exits with code 2 when an update would be made.
python3 nmbot_maintain.py apply --keyword-reply 123 --confirm
python3 nmbot_maintain.py apply --message-template 43782 --confirmRun only the target that was reviewed and authorized. A successful command ends with an nmBot read-back of the same object.
Remove the object from local state first and run validate. Preview the remote deletion without writing:
python3 nmbot_maintain.py delete --keyword-reply 123
python3 nmbot_maintain.py delete --message-template 456After reviewing the exact ID, repeat with --confirm. Delete a referencing keyword rule before its message template. Each confirmed deletion is read back before the command reports success.
Repository-backed facts in replies should be verified against the owning source before editing, including:
Group-only short codes, moderation policy, and operator instructions still require current human confirmation. Do not convert an unverified assumption into bot copy.
Open the nmBot panel in Arc, log in again, and rerun the read-only command. Do not copy a session ID into a file or command line.
Add the intended nmBot username as sessionUsername in config.json. The value may include or omit the leading @.
Stop and reconcile the baseline. apply intentionally refuses to turn an edit into an implicit add or delete.
Treat the update as unverified. Pull the live state again and inspect the exact returned object before making another change.
| Back | FazBrowse Home | New Git URL |