From a98105c6d5b9eb3b0b85274e0107026b343856bf Mon Sep 17 00:00:00 2001 From: Theo Fandrich Date: Sun, 6 Aug 2023 21:29:07 -0700 Subject: [PATCH 1/2] round 1 of many text edits --- src/modules/1country/pages/main.ts | 7 ++++++- src/modules/open-ai/pages/imagePage.ts | 2 +- src/modules/open-ai/utils/text.ts | 19 ++++++++++++------- src/modules/qrcode/menu.ts | 16 ++-------------- src/modules/sd-images/menu.ts | 20 +++++++------------- src/modules/wallet/menu.ts | 6 ++++-- 6 files changed, 32 insertions(+), 38 deletions(-) diff --git a/src/modules/1country/pages/main.ts b/src/modules/1country/pages/main.ts index 0acecfd7..322fde24 100644 --- a/src/modules/1country/pages/main.ts +++ b/src/modules/1country/pages/main.ts @@ -7,13 +7,18 @@ const help = `🌐 *1.country Help* *1. ASSESS A DOMAIN'S STATUS* • Use */check* -Example: */check* abc +*Example:* +\`/check abc\` *2. RENT A DOMAIN FOR 30 DAYS* • Use */rent* +*Example:* +\`/rent abc\` *3. RENEW A DOMAIN FOR 30 DAYS* • Use */renew* +*Example:* +\`/renew abc\` `; diff --git a/src/modules/open-ai/pages/imagePage.ts b/src/modules/open-ai/pages/imagePage.ts index 18a6ec0e..b44381fb 100644 --- a/src/modules/open-ai/pages/imagePage.ts +++ b/src/modules/open-ai/pages/imagePage.ts @@ -6,7 +6,7 @@ import { isAdmin } from "../utils/context"; import { MenuIds } from "../../../constants"; export const imageGenMainMenu = new Menu(MenuIds.IMAGE_GEN_MAIN) - .text("help", (ctx) => { + .text("Help", (ctx) => { ctx .editMessageText(appText.imageGenMain, { parse_mode: "Markdown", diff --git a/src/modules/open-ai/utils/text.ts b/src/modules/open-ai/utils/text.ts index 5a1b5cbe..d174a346 100644 --- a/src/modules/open-ai/utils/text.ts +++ b/src/modules/open-ai/utils/text.ts @@ -1,16 +1,21 @@ import config from "../../../config"; export const appText = { - imageGenMain: `*🎨 Image Generation DALL·E 2 Help* + imageGenMain: `*🎨 DALL·E 2 Help* + I generate *${config.openAi.imageGen.sessionDefault.numImages} ${config.openAi.imageGen.sessionDefault.imgSize}* image(s) per prompt\n *1. GENERATE A STANDARD PROMPT* • Use */genImg* -Example: */genImg* beautiful scenery, purple galaxy bottle +Example: +\`/genImg beautiful scenery, purple galaxy bottle\` *2. GENERATE AN ENHANCED IMAGE* • Use */genImgEn* -EXAMPLE: */genImgEn* beautiful scenery, horse trotting`, +Example: +\`/genImgEn beautiful scenery, horse trotting\` + +`, // `*3. GENERATE IMAGE VARIATIONS* // To generates variations of an image using OpenAi API, reply to a message in our chat @@ -18,11 +23,11 @@ EXAMPLE: */genImgEn* beautiful scenery, horse trotting`, // photo and write the number of variations in the caption. //` - imageGenChangeDefault: `*🎨 Image Generation DALL·E 2 Help*\n\n*Change images output sizes and numbers* -With the following menu, you can choose how many images can be generated on each prompt. Also, you can change the image size`, +imageGenChangeDefault: `*🎨 Image Generation DALL·E 2 Help*\n\n*Change image output sizes and numbers* +Adjust image size or how many images are generated`, chatGptMain: `*🖌️ ChatGPT Help* -*1. CHAT WITH AI** -• Use */chat* *`, +*1. CHAT WITH AI* +• Use */chat* `, chatGptChangeModel: `*🖌️ ChatGPT Help*\nChoose one of the following models`, generatingText: `Generating response...`, gptHelpText: `Write *end* to finish this conversation.\nWrite *help* to repeat this message.`, diff --git a/src/modules/qrcode/menu.ts b/src/modules/qrcode/menu.ts index e9e7dd06..e9749226 100644 --- a/src/modules/qrcode/menu.ts +++ b/src/modules/qrcode/menu.ts @@ -6,21 +6,9 @@ const helpText = `📷 *QR Generation Help* *1. GENERATE A QR CODE* • Use */qr* -Example: \/qr https://h.country/ai astronaut, sky, colorful\ - - -Send a message with the "qr" command and your prompts: -/qr *LINK* *PROMPTS*. - *Example:* -\`/qr https://h.country/ai astronaut, sky, colorful\` - -*Change options* - -You can change following options. - -- *QR Code Margin* - Define how much wide the quiet zone should be. -`; +\`/qr h.country/ai astronaut, sky, colorful\` +` export const qrCodeBotMenu = new Menu(MenuIds.QR_BOT_MAIN) // .text("Help", (ctx) => { diff --git a/src/modules/sd-images/menu.ts b/src/modules/sd-images/menu.ts index 708c13ab..874ee1af 100644 --- a/src/modules/sd-images/menu.ts +++ b/src/modules/sd-images/menu.ts @@ -4,22 +4,16 @@ import { MenuIds } from "../../constants"; const helpText = `🖼️ *Stable Diffusion Help* -*Commands* - -Send a message with the "/image" command and your prompts: -/image *PROMPTS*. - -*Example:* - +*1. GENERATE A SINGLE IMAGE* +• Use */image ** +*Example:* \`/image best quality, masterpiece, ultra high res, photorealistic, 1girl, offshoulder, smile\` -Also, you can generate multiple images at once and then choose the best one. - -Send a message with the "/images" command and your prompts: - -*Example:* - +*2. GENERAGE MULTIPLE IMAGES* +• Use */images * +*Example:* \`/images best quality, masterpiece, ultra high res, photorealistic, 1girl, offshoulder, smile\` + `; export const sdImagesMenu = new Menu(MenuIds.SD_IMAGES_MAIN) diff --git a/src/modules/wallet/menu.ts b/src/modules/wallet/menu.ts index fd6b8953..8e124105 100644 --- a/src/modules/wallet/menu.ts +++ b/src/modules/wallet/menu.ts @@ -5,7 +5,7 @@ import { MenuIds } from "../../constants"; const helpText = `🏦 *One Wallet Help* *1. HOW TO BUY $ONE* -• Find where to buy $ONE [here](https://harmony.one/buy) +• Buy [here](https://harmony.one/buy) *2. CREATING A WALLET* • Use */wallet* to initiate wallet creation @@ -13,10 +13,12 @@ const helpText = `🏦 *One Wallet Help* *3. SENDING ONE TO ANOTHER ADDRESS* • Use */wallet* send
-Example: */wallet* send 0x199177Bcc7cdB22eC10E3A2DA888c7811275fc38 2.55 +*Example:* +\`/wallet send 0x199177Bcc7cdB22eC10E3A2DA888c7811275fc38 2.55\` *4. WALLETCONNECT* • Use */walletconnect* + `; export const walletMenu = new Menu(MenuIds.WALLET_MAIN) From c58fc2c13c2e83471e4689197969c0b6cb3db63e Mon Sep 17 00:00:00 2001 From: Theo Fandrich Date: Mon, 7 Aug 2023 11:42:23 -0700 Subject: [PATCH 2/2] round 2 of many --- src/modules/1country/pages/main.ts | 11 +++++------ src/modules/open-ai/utils/text.ts | 1 + src/modules/qrcode/menu.ts | 2 +- src/modules/wallet/menu.ts | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/modules/1country/pages/main.ts b/src/modules/1country/pages/main.ts index 322fde24..e3b0180c 100644 --- a/src/modules/1country/pages/main.ts +++ b/src/modules/1country/pages/main.ts @@ -7,19 +7,18 @@ const help = `🌐 *1.country Help* *1. ASSESS A DOMAIN'S STATUS* • Use */check* -*Example:* -\`/check abc\` + +\`/check abcwebsite\` *2. RENT A DOMAIN FOR 30 DAYS* • Use */rent* -*Example:* -\`/rent abc\` + +\`/rent abcwebsite\` *3. RENEW A DOMAIN FOR 30 DAYS* • Use */renew* -*Example:* -\`/renew abc\` +\`/renew abcwebsite\` `; export const oneCountryMainMenu = new Menu(MenuIds.ONE_COUNTRY_MAIN) // diff --git a/src/modules/open-ai/utils/text.ts b/src/modules/open-ai/utils/text.ts index d174a346..ba88ee46 100644 --- a/src/modules/open-ai/utils/text.ts +++ b/src/modules/open-ai/utils/text.ts @@ -26,6 +26,7 @@ Example: imageGenChangeDefault: `*🎨 Image Generation DALL·E 2 Help*\n\n*Change image output sizes and numbers* Adjust image size or how many images are generated`, chatGptMain: `*🖌️ ChatGPT Help* + *1. CHAT WITH AI* • Use */chat* `, chatGptChangeModel: `*🖌️ ChatGPT Help*\nChoose one of the following models`, diff --git a/src/modules/qrcode/menu.ts b/src/modules/qrcode/menu.ts index e9749226..1bc787e5 100644 --- a/src/modules/qrcode/menu.ts +++ b/src/modules/qrcode/menu.ts @@ -6,7 +6,7 @@ const helpText = `📷 *QR Generation Help* *1. GENERATE A QR CODE* • Use */qr* -*Example:* + \`/qr h.country/ai astronaut, sky, colorful\` ` diff --git a/src/modules/wallet/menu.ts b/src/modules/wallet/menu.ts index 8e124105..6a494af6 100644 --- a/src/modules/wallet/menu.ts +++ b/src/modules/wallet/menu.ts @@ -13,7 +13,7 @@ const helpText = `🏦 *One Wallet Help* *3. SENDING ONE TO ANOTHER ADDRESS* • Use */wallet* send
-*Example:* + \`/wallet send 0x199177Bcc7cdB22eC10E3A2DA888c7811275fc38 2.55\` *4. WALLETCONNECT*