Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

round 1 of many text edits #59

Merged
merged 2 commits into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/modules/1country/pages/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ const help = `🌐 *1.country Help*

*1. ASSESS A DOMAIN'S STATUS*
• Use */check* <DOMAIN>
Example: */check* abc

\`/check abcwebsite\`

*2. RENT A DOMAIN FOR 30 DAYS*
• Use */rent* <DOMAIN>

\`/rent abcwebsite\`

*3. RENEW A DOMAIN FOR 30 DAYS*
• Use */renew* <DOMAIN>

\`/renew abcwebsite\`
`;

export const oneCountryMainMenu = new Menu<BotContext>(MenuIds.ONE_COUNTRY_MAIN) //<MyContext>
Expand Down
2 changes: 1 addition & 1 deletion src/modules/open-ai/pages/imagePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { isAdmin } from "../utils/context";
import { MenuIds } from "../../../constants";

export const imageGenMainMenu = new Menu<BotContext>(MenuIds.IMAGE_GEN_MAIN)
.text("help", (ctx) => {
.text("Help", (ctx) => {
ctx
.editMessageText(appText.imageGenMain, {
parse_mode: "Markdown",
Expand Down
20 changes: 13 additions & 7 deletions src/modules/open-ai/utils/text.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,34 @@
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* <TEXT>
Example: */genImg* beautiful scenery, purple galaxy bottle
Example:
\`/genImg beautiful scenery, purple galaxy bottle\`

*2. GENERATE AN ENHANCED IMAGE*
• Use */genImgEn* <TEXT>
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
// with a picture and write the number of variations (max 10). Also, you can upload a
// 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* <TEXT>*`,

*1. CHAT WITH AI*
• Use */chat* <TEXT>`,
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.`,
Expand Down
16 changes: 2 additions & 14 deletions src/modules/qrcode/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,9 @@ const helpText = `📷 *QR Generation Help*

*1. GENERATE A QR CODE*
• Use */qr* <LINK> <PROMPTS>
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<BotContext>(MenuIds.QR_BOT_MAIN) //<MyContext>
.text("Help", (ctx) => {
Expand Down
20 changes: 7 additions & 13 deletions src/modules/sd-images/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <PROMPTS>**
*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 <PROMPTS>*
*Example:*
\`/images best quality, masterpiece, ultra high res, photorealistic, 1girl, offshoulder, smile\`

`;

export const sdImagesMenu = new Menu<BotContext>(MenuIds.SD_IMAGES_MAIN)
Expand Down
6 changes: 4 additions & 2 deletions src/modules/wallet/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@ 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
• Follow the instructions that appear

*3. SENDING ONE TO ANOTHER ADDRESS*
• Use */wallet* send <ADDRESS> <AMOUNT>
Example: */wallet* send 0x199177Bcc7cdB22eC10E3A2DA888c7811275fc38 2.55

\`/wallet send 0x199177Bcc7cdB22eC10E3A2DA888c7811275fc38 2.55\`

*4. WALLETCONNECT*
• Use */walletconnect*

`;

export const walletMenu = new Menu<BotContext>(MenuIds.WALLET_MAIN)
Expand Down