Skip to main content

Admin & Maintenance Manual

Admin commands are designated for system diagnostics, image synchronization, cache operations, and push testing. All admin commands begin with /管理 (or /admin).


Session Diagnostics (/管理 账户信息)​

Inspects underlying session identifiers and permission roles for the current conversation.

Syntax​

/管理 账户信息

Returned Information​

  • User OpenID and Group OpenID
  • Session scenario (Group / DM / Channel)
  • Role evaluation (Super Admin / Bot Admin / Group Owner / Group Admin / Member)
  • Proactive push channel capability status

Guide Image Upload (/管理 指南上传)​

Uploads and persists guide images to server disk storage (/db/dailyReport), binds alias triggers, and supports wrapping with header/footer brand templates.

Syntax​

/管理 指南上传 -password <password> -name <GuideName> [-url <ImageURL>] [-isTmp <true/false>]

Parameter Reference​

FlagAliasesRequiredDescription
-password-passwrod, -passwd, -pwd, -pYesUpload authorization password matching the .env secret
-name-nYesGuide trigger name; supports comma-separated aliases (e.g. -name BuildA,BuildB)
-url-u, -linkNoDirect image download URL
-isTmp-istmp, -istemp, -temp, -tmp, -tNoWhen true, generates a rendered copy wrapped with header and footer templates without modifying the raw image

Interactive Mode (When -url is Omitted)​

If the command is issued without -url or an attached image:

  • After verifying the password, the bot prompts: 请在下方发送图片。 and enters a 120-second waiting state.
  • Reply with an Image: Send an image attachment or paste an image link in your next message.
  • The bot captures the image, validates its format, stores it to disk, and updates alias links.
  • Exit Waiting State: Reply 取消 or issue any new slash command to abort.

Automatic Overwrite for Duplicate Names​

  • If a guide name or alias already exists, re-uploading will automatically overwrite existing files and metadata.
  • If the new upload uses a different image format (e.g. replacing an old .jpg with a new .png), the server cleans up obsolete files to avoid redundant leftovers.
  • Upon successful overwrite, all memory and Redis caches for all associated aliases are purged immediately.

Examples​

  • Upload & Overwrite via Direct URL:
    /管理 指南上传 -password YourPassword -name NavigationGuide -url https://glow-prow.top/assets/guide.png
  • Bind Multiple Aliases with Template Wrapper:
    /管理 指南上传 -password YourPassword -name WeaponGuide,Cannons -url https://glow-prow.top/assets/cannons.png -isTmp true
  • Interactive Image Reply Mode:
    # Step 1: Send upload command
    /管理 指南上传 -password YourPassword -name TreasureMap

    # Bot replies: 请在下方发送图片。

    # Step 2: Send your image attachment or link in the next message

Guide Deletion (/管理 指南删除)​

Safely deletes guide image files from disk storage (/db/dailyReport), removes SQLite metadata records, and immediately clears cached entries.

Syntax​

/管理 指南删除 -password <password> -name <GuideName>

Parameter Reference​

FlagAliasesRequiredDescription
-password-passwrod, -passwd, -pwd, -pYesDeletion authorization password matching the .env secret
-name-nYesGuide name or aliases to delete (supports comma-separated multiple aliases for batch deletion, e.g. -name Basics,Advanced)

Examples​

  • Delete Single Guide:
    /管理 指南删除 -password YourPassword -name TreasureMap
  • Batch Delete Multiple Aliases:
    /管理 指南删除 -password YourPassword -name WeaponGuide,Cannons

Guide Cache Flush (/管理 清理指南缓存)​

Instantly purges all 3-hour guide caches across memory and Redis.

Syntax​

/管理 清理指南缓存

Daily Report Cache Flush (/管理 清理日报缓存)​

Clears the local screenshot cache and Redis keys for today's daily report, immediately triggering background re-rendering.

Syntax​

/管理 清理日报缓存

Global Cache Flush (/管理 清除缓存)​

Flushes all Redis keys and in-memory caches across the platform (Super Admin only).

Syntax​

/管理 清除缓存

Drops Testing & Notifications (/管理 掉宝通知 / 掉宝测试)​

  • Query Notification Log:
    /管理 掉宝通知
  • Simulate Campaign Push:
    /管理 掉宝测试

Daily Report Push Simulation (/管理 日报主动推送测试)​

Simulates scheduled daily report push delivery across subscribed channels.

Syntax​

/管理 日报主动推送测试