From d03c90f6d6329d2300e61152d98e91d953a15ab1 Mon Sep 17 00:00:00 2001 From: GramingFoxTeam Date: Wed, 26 Jul 2023 20:02:06 +0300 Subject: [PATCH] fix(bot-telegram): fix configuration --- apps/bot-telegram/src/config.json | 30 +++++++------------ .../src/helperEvents/aiResponse.js | 2 +- .../src/helperEvents/ocrResponse.js | 2 +- 3 files changed, 12 insertions(+), 22 deletions(-) diff --git a/apps/bot-telegram/src/config.json b/apps/bot-telegram/src/config.json index c89a817..a751049 100644 --- a/apps/bot-telegram/src/config.json +++ b/apps/bot-telegram/src/config.json @@ -9,8 +9,7 @@ "threshold": 0.85, "reply": { "title": "Why is my patched app crashing?", - "description": "It seems like your patched application is crashing, these might be the reason why:\n * You patched a non-suggested version.\n * Patches failed to apply.\n * Non-default patches were used.\n * Split APK was used.", - "color": 14908858 + "description": "It seems like your patched application is crashing, these might be the reason why:\n * You patched a non-suggested version.\n * Patches failed to apply.\n * Non-default patches were used.\n * Split APK was used." } }, { @@ -18,8 +17,7 @@ "threshold": 0.85, "reply": { "title": "Why is ReVanced Manager aborting?", - "description": "It seems like your Manager is aborting. If you see the text \"exit code = 135\" or \"exit code = 139\", then your device's architecture is not supported. Please patch on another device or on your PC.", - "color": 14908858 + "description": "It seems like your Manager is aborting. If you see the text \"exit code = 135\" or \"exit code = 139\", then your device's architecture is not supported. Please patch on another device or on your PC." } }, { @@ -27,8 +25,7 @@ "threshold": 0.85, "reply": { "title": "How to download ReVanced?", - "description": "ReVanced is a patcher. You can use the [ReVanced Manager](https://github.com/revanced/revanced-manager/releases/latest) or the [ReVanced CLI](https://github.com/revanced/revanced-cli) to patch the app you want to modify.\n* [ReVanced Manager docs](https://github.com/revanced/revanced-manager/tree/main/docs#-revanced-manager)\n* [ReVanced CLI docs](https://github.com/revanced/revanced-cli/tree/main/docs#-documentation-and-guides-of-revanced-cli)", - "color": 14908858 + "description": "ReVanced is a patcher. You can use the [ReVanced Manager](https://github.com/revanced/revanced-manager/releases/latest) or the [ReVanced CLI](https://github.com/revanced/revanced-cli) to patch the app you want to modify.\n* [ReVanced Manager docs](https://github.com/revanced/revanced-manager/tree/main/docs#-revanced-manager)\n* [ReVanced CLI docs](https://github.com/revanced/revanced-cli/tree/main/docs#-documentation-and-guides-of-revanced-cli)" } }, { @@ -36,8 +33,7 @@ "threshold": 0.85, "reply": { "title": "Will YT ReVanced support Android TVs?", - "description": "YouTube ReVanced for Android/Google TVs won't be made. There are alternatives, such as [SmartTubeNext](https://github.com/yuliskov/SmartTubeNext#smarttube).", - "color": 14908858 + "description": "YouTube ReVanced for Android/Google TVs won't be made. There are alternatives, such as [SmartTubeNext](https://github.com/yuliskov/SmartTubeNext#smarttube)." } }, { @@ -45,8 +41,7 @@ "threshold": 0.85, "reply": { "title": "Why can't I download videos?", - "description": "You need to install a downloader to download videos. NewPipe is the default downloader, and it can be downloaded from [here](https://github.com/TeamNewPipe/NewPipe/releases/latest).", - "color": 14908858 + "description": "You need to install a downloader to download videos. NewPipe is the default downloader, and it can be downloaded from [here](https://github.com/TeamNewPipe/NewPipe/releases/latest)." } }, { @@ -54,8 +49,7 @@ "threshold": 0.85, "reply": { "title": "Why can't I cast?", - "description": "Because of devices like Chromecast, Android/Google TVs using the Cast v2 API, casting to those devices won't work.", - "color": 14908858 + "description": "Because of devices like Chromecast, Android/Google TVs using the Cast v2 API, casting to those devices won't work." } }, { @@ -63,8 +57,7 @@ "threshold": 0.85, "reply": { "title": "From where can I download Vanced MicroG?", - "description": "You can download Vanced MicroG from [here](https://github.com/TeamVanced/VancedMicroG/releases/latest).", - "color": 14908858 + "description": "You can download Vanced MicroG from [here](https://github.com/TeamVanced/VancedMicroG/releases/latest)." } }, { @@ -72,8 +65,7 @@ "threshold": 0.85, "reply": { "title": "Why does YT ReVanced say I'm offline?", - "description": "If your YT ReVanced appears to not have internet and you recently changed your Google password, remove the Vanced MicroG account from within your device settings and then log back in.", - "color": 14908858 + "description": "If your YT ReVanced appears to not have internet and you recently changed your Google password, remove the Vanced MicroG account from within your device settings and then log back in." } }, { @@ -81,8 +73,7 @@ "threshold": 0.85, "reply": { "title": "What are the official ReVanced sites?", - "description": "The official sites for ReVanced are [revanced.app](https://revanced.app) and [github.com/revanced](https://github.com/revanced).", - "color": 14908858 + "description": "The official sites for ReVanced are [revanced.app](https://revanced.app) and [github.com/revanced](https://github.com/revanced)." } }, { @@ -96,8 +87,7 @@ "regex": "is not installed", "reply": { "title": "Why can't I download videos?", - "description": "You need to install a downloader to download videos. NewPipe is the default downloader, and it can be downloaded from [here](https://github.com/TeamNewPipe/NewPipe/releases/latest).", - "color": 14908858 + "description": "You need to install a downloader to download videos. NewPipe is the default downloader, and it can be downloaded from [here](https://github.com/TeamNewPipe/NewPipe/releases/latest)." } } ] diff --git a/apps/bot-telegram/src/helperEvents/aiResponse.js b/apps/bot-telegram/src/helperEvents/aiResponse.js index 0373e56..7acf099 100644 --- a/apps/bot-telegram/src/helperEvents/aiResponse.js +++ b/apps/bot-telegram/src/helperEvents/aiResponse.js @@ -17,7 +17,7 @@ export default { // there won't be markdown support for now. bot.sendMessage( ids[0], - `## ${response.reply.title}\n\n${response.reply.desc}\n\n_Confidence: ${intent.confidence}_\n\nThis bot is currently being tested in production. Ignore it, if it's wrong.`, + `## ${response.reply.title}\n\n${response.reply.description}\n\n_Confidence: ${intent.confidence}_\n\nThis bot is currently being tested in production. Ignore it, if it's wrong.`, { message_thread_id: ids[1], reply_to_message_id: ids[2] diff --git a/apps/bot-telegram/src/helperEvents/ocrResponse.js b/apps/bot-telegram/src/helperEvents/ocrResponse.js index 91c3b65..d61705c 100644 --- a/apps/bot-telegram/src/helperEvents/ocrResponse.js +++ b/apps/bot-telegram/src/helperEvents/ocrResponse.js @@ -10,7 +10,7 @@ export default { // there won't be markdown support for now. bot.sendMessage( ids[0], - `## ${ocrReply.reply.title}\n\n${ocrReply.reply.desc}\n\nThis bot is currently being tested in production. Ignore it, if it's wrong.`, + `## ${ocrReply.reply.title}\n\n${ocrReply.reply.description}\n\nThis bot is currently being tested in production. Ignore it, if it's wrong.`, { message_thread_id: ids[1], reply_to_message_id: ids[2]