Skip to content

Commit 7730b1d

Browse files
authored
Simplify README.md content (#1654)
* Simplify README.md content * Refactor welcome message logic
1 parent d1c8c4e commit 7730b1d

File tree

3 files changed

+16
-24
lines changed

3 files changed

+16
-24
lines changed

README.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,8 @@ We can test all XMTP bindings using three main applications. We use [xmtp.chat](
110110
- Schedule: Scheduled workflows - [see section](https://github.com/xmtp/xmtp-qa-tools/actions?query=event:schedule)
111111
- Railway: Multi-region services - [see section](https://railway.com/project/cc97c743-1be5-4ca3-a41d-0109e41ca1fd)
112112
- Bots: Bots for testing with multiple agents - [see section](https://github.com/xmtp/xmtp-qa-tools/tree/main/bots/)
113-
- [`key-check.eth`](https://github.com/xmtp/xmtp-qa-tools/tree/main/bots/key-check): key packages
114-
- [`hi.xmtp.eth`](https://github.com/xmtp/gm-bot): A bot that replies "gm" to all messages
115-
- Generate wallet keys and encryption keys for XMTP testing - [see section](./cli/keys.ts)
116-
- Creates `.env` file with `XMTP_WALLET_KEY`, `XMTP_DB_ENCRYPTION_KEY`, and `XMTP_ENV`
117-
- Usage: `yarn gen:keys [--env <environment>]`
118-
- Revoke XMTP installations for a given inbox ID - [see section](./cli/revoke.ts)
119-
- Can keep specific installations or revoke all except one
120-
- Usage: `yarn revoke <inbox-id> [--keep <ids>] [--env <environment>]`
121-
- XMTP agent assistant for XMTP tasks via Slack or XMTP - [see section](./copilot/CLAUDE.md)
122-
- Create groups, send messages, debug addresses, manage permissions, and more
123-
- Address: `0x057266a6158a0FC5C9D21b9C1036FBb4af6BD45f`
113+
- Claude Code ai assistant for XMTP - [see section](./copilot/CLAUDE.md)
114+
- Railway download db server - [see section](./db-backups/README.md)
124115

125116
## Development
126117

agents/bots/key-check/index.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,19 @@ agent.on("text", async (ctx) => {
343343
content.trim().startsWith("@kc") ||
344344
content.trim().startsWith("/kc") ||
345345
content.trim().startsWith("@key-check.eth");
346-
if (isTagged) {
346+
347+
if (ctx.isDm() && !isTagged) {
348+
const welcomeMessage = `### 👋 Welcome to Key-Check Bot isDm: ${ctx.isDm()} isTagged: ${isTagged}
349+
350+
Please send \`/kc\` to see the main menu
351+
352+
Or directly send:
353+
- 📧 An **Ethereum address** to check key packages
354+
- 🔑 An **Inbox ID** to check key packages`;
355+
356+
await ctx.sendText(messageBody1);
357+
await ctx.conversation.send(welcomeMessage, ContentTypeMarkdown);
358+
} else if (isTagged) {
347359
await ctx.sendText(messageBody1);
348360
await showMenu(ctx, appConfig, "main-menu");
349361
return;
@@ -404,18 +416,6 @@ agent.on("text", async (ctx) => {
404416
}
405417
return;
406418
}
407-
408-
if (ctx.isDm() && !isTagged) {
409-
const welcomeMessage = `### 👋 Welcome to Key-Check Bot isDm: ${ctx.isDm()} isTagged: ${isTagged}
410-
411-
Please send \`/kc\` to see the main menu
412-
413-
Or directly send:
414-
- 📧 An **Ethereum address** to check key packages
415-
- 🔑 An **Inbox ID** to check key packages`;
416-
417-
await ctx.conversation.send(welcomeMessage, ContentTypeMarkdown);
418-
}
419419
});
420420

421421
// 4. Log when we're ready

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"clean": "rimraf .data/ ||: && rimraf logs/ || :",
1717
"db-manager-linux": "./cli/db-manager/db-manager-linux",
1818
"db-manager-macos": "./cli/db-manager/db-manager-macos",
19+
"db-manager-query-bench": "chmod +x ./cli/db-manager/db-manager-linux && yarn db-manager-linux /data/production-777f5f2a.db3 --task query-bench",
1920
"debug": "npx @xmtp/cli debug --help",
2021
"debug-dm": "tsx agents/debug-dm.ts",
2122
"download-server": "tsx db-backups/download-server.ts",

0 commit comments

Comments
 (0)