Rename Telegram bot commands from hyphens to underscores (#1126)

Telegram Bot API only allows a-z, 0-9, and underscores in command
names. Rename /claude-mem-feed → /claude_mem_feed and
/claude-mem-status → /claude_mem_status.

Fixes #1108

Co-authored-by: Manantra <113709296+Manantra@users.noreply.github.com>
This commit is contained in:
Alex Newman
2026-02-16 00:33:55 -05:00
committed by GitHub
parent be474ea595
commit ab2dbb7dc7
4 changed files with 33 additions and 104 deletions
+4 -4
View File
@@ -806,10 +806,10 @@ export default function claudeMemPlugin(api: OpenClawPluginApi): void {
}
// ------------------------------------------------------------------
// Command: /claude-mem-feed — status & toggle
// Command: /claude_mem_feed — status & toggle
// ------------------------------------------------------------------
api.registerCommand({
name: "claude-mem-feed",
name: "claude_mem_feed",
description: "Show or toggle Claude-Mem observation feed status",
acceptsArgs: true,
handler: async (ctx) => {
@@ -977,10 +977,10 @@ export default function claudeMemPlugin(api: OpenClawPluginApi): void {
});
// ------------------------------------------------------------------
// Command: /claude-mem-status — worker health check
// Command: /claude_mem_status — worker health check
// ------------------------------------------------------------------
api.registerCommand({
name: "claude-mem-status",
name: "claude_mem_status",
description: "Check Claude-Mem worker health and session status",
handler: async () => {
const healthText = await workerGetText(workerPort, "/api/health", api.logger);