From 1e26e84e3228d0ed8ea129044705a509f8eb0d2c Mon Sep 17 00:00:00 2001 From: Evgeny Date: Thu, 30 Apr 2026 14:22:02 +0100 Subject: [PATCH] support bot: update messages (#6927) --- apps/simplex-support-bot/.gitignore | 3 ++ apps/simplex-support-bot/package-lock.json | 47 ++-------------------- apps/simplex-support-bot/package.json | 2 +- apps/simplex-support-bot/src/bot.ts | 2 +- apps/simplex-support-bot/src/messages.ts | 9 +++-- 5 files changed, 14 insertions(+), 49 deletions(-) create mode 100644 apps/simplex-support-bot/.gitignore diff --git a/apps/simplex-support-bot/.gitignore b/apps/simplex-support-bot/.gitignore new file mode 100644 index 0000000000..9f77d70eda --- /dev/null +++ b/apps/simplex-support-bot/.gitignore @@ -0,0 +1,3 @@ +node_modules/ +data/ +.env diff --git a/apps/simplex-support-bot/package-lock.json b/apps/simplex-support-bot/package-lock.json index c6bc006a4b..1569c18309 100644 --- a/apps/simplex-support-bot/package-lock.json +++ b/apps/simplex-support-bot/package-lock.json @@ -12,7 +12,7 @@ "@simplex-chat/types": "^0.5.0", "async-mutex": "^0.5.0", "commander": "^14.0.3", - "simplex-chat": "^6.5.0-beta.10" + "simplex-chat": "^6.5.0" }, "devDependencies": { "@types/node": "^22.0.0", @@ -523,9 +523,6 @@ "arm" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -540,9 +537,6 @@ "arm" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -557,9 +551,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -574,9 +565,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -591,9 +579,6 @@ "loong64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -608,9 +593,6 @@ "loong64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -625,9 +607,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -642,9 +621,6 @@ "ppc64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -659,9 +635,6 @@ "riscv64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -676,9 +649,6 @@ "riscv64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -693,9 +663,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -710,9 +677,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -727,9 +691,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1714,9 +1675,9 @@ } }, "node_modules/simplex-chat": { - "version": "6.5.0-beta.10", - "resolved": "https://registry.npmjs.org/simplex-chat/-/simplex-chat-6.5.0-beta.10.tgz", - "integrity": "sha512-K5yt4zAA04Ds0XvrSLhuknXx1rmCM8ByjgjJ0iHcQmPU5us9aaiIuez9HPP8FG1a+9xj8XMcgJfi0W1f2fTCdQ==", + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/simplex-chat/-/simplex-chat-6.5.0.tgz", + "integrity": "sha512-QFGI734HhYJ7trSrEKiZ2mbodI0V8CLDGEv2+yt5zsg0FqftxSpFik6zUSezTRZtN1M8WmSlT44qlEt2a1fXQw==", "hasInstallScript": true, "license": "AGPL-3.0", "dependencies": { diff --git a/apps/simplex-support-bot/package.json b/apps/simplex-support-bot/package.json index 68105851b8..ee57762465 100644 --- a/apps/simplex-support-bot/package.json +++ b/apps/simplex-support-bot/package.json @@ -11,7 +11,7 @@ "@simplex-chat/types": "^0.5.0", "async-mutex": "^0.5.0", "commander": "^14.0.3", - "simplex-chat": "^6.5.0-beta.10" + "simplex-chat": "^6.5.0" }, "devDependencies": { "@types/node": "^22.0.0", diff --git a/apps/simplex-support-bot/src/bot.ts b/apps/simplex-support-bot/src/bot.ts index a25c05ce8a..9bfb44d93d 100644 --- a/apps/simplex-support-bot/src/bot.ts +++ b/apps/simplex-support-bot/src/bot.ts @@ -383,7 +383,7 @@ export class SupportBot { await this.withMainProfile(() => this.chat.apiSendTextMessage( [T.ChatType.Direct, contactId], - `Please use my business address to ask questions: ${this.businessAddress}`, + `Please re-connect to this address for any questions: ${this.businessAddress}`, ) ) } catch (err) { diff --git a/apps/simplex-support-bot/src/messages.ts b/apps/simplex-support-bot/src/messages.ts index 9952ccf8ce..c35789d26b 100644 --- a/apps/simplex-support-bot/src/messages.ts +++ b/apps/simplex-support-bot/src/messages.ts @@ -1,7 +1,8 @@ import {isWeekend} from "./util.js" export const welcomeMessage = `Hello! This is a *SimpleX team* support bot - not an AI. -Please ask any question about SimpleX Chat.` +*Join public groups* at https://simplex.chat/directory or [via directory bot](https://smp4.simplex.im/a#lXUjJW5vHYQzoLYgmi8GbxkGP41_kjefFvBrdwg-0Ok) +Please ask any questions about SimpleX Chat.` export function queueMessage(timezone: string, grokEnabled: boolean): string { const hours = isWeekend(timezone) ? "48" : "24" @@ -14,7 +15,7 @@ If your question is about SimpleX, click /grok for an *instant Grok answer*. Send /team to switch back.` } -export const grokActivatedMessage = `*You are chatting with Grok* - use any language.` +export const grokActivatedMessage = `*You are now chatting with Grok* - use any language.` export function teamAddedMessage(timezone: string, grokPresent: boolean): string { const hours = isWeekend(timezone) ? "48" : "24" @@ -24,9 +25,9 @@ export function teamAddedMessage(timezone: string, grokPresent: boolean): string Grok will be answering your questions until then.` } -export const teamAlreadyInvitedMessage = "A team member has already been invited to this conversation and will reply when available." +export const teamAlreadyInvitedMessage = "A team member was invited to this conversation and will reply when available." -export const teamLockedMessage = "You are now in team mode. A team member will reply to your message." +export const teamLockedMessage = "Only the team will now receive your messages." export function noTeamMembersMessage(grokEnabled: boolean): string { return grokEnabled