From 721afd6835aab881737ade8ad7ba68f7fbda8610 Mon Sep 17 00:00:00 2001 From: KobeW50 <84587632+KobeW50@users.noreply.github.com> Date: Sun, 25 Jun 2023 22:57:23 -0400 Subject: [PATCH] refactor: improved AI responses (#9) * Update discord config.json Tweaked things for improved readabilty. Some responses have added useful info. * Update telegram config.json Improved readability and added useful info * Update config.json added the null thingy * Update config.json added the null thingy * Update config.json changed language and grammar corrections * Update telegram config.json updated language and grammar * Update config.json grammatical fix * Update config.json grammatical fix * Update config.json * Update config.json * Update config.json --- apps/bot-discord/src/config.json | 85 ++++++++++++++++++++-- apps/bot-telegram/src/config.json | 113 +++++++++++++++++++++++++----- 2 files changed, 178 insertions(+), 20 deletions(-) diff --git a/apps/bot-discord/src/config.json b/apps/bot-discord/src/config.json index 774e3e6..a100613 100644 --- a/apps/bot-discord/src/config.json +++ b/apps/bot-discord/src/config.json @@ -9,24 +9,101 @@ "host": "127.0.0.1" }, "responses": [ + { + "label": "revanced_crash", + "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 + } + }, + { + "label": "rvmanager_abort", + "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 + } + }, { "label": "revanced_download", "threshold": 0.85, "reply": { "title": "How to download ReVanced?", - "description": "You don't.", + "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 docshttps://github.com/revanced/revanced-cli/tree/main#-documentation-and-guides-of-revanced-clihttps://github.com/revanced/revanced-cli/tree/main#-documentation-and-guides-of-revanced-cli](https://github.com/revanced/revanced-cli/tree/main#-documentation-and-guides-of-revanced-cli)", "color": 14908858 } + }, + { + "label": "androidtv_support", + "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 + } + }, + { + "label": "revanced_nodownloader", + "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 + } + }, + { + "label": "revanced_casting", + "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 + } + }, + { + "label": "microg_download", + "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 + } + }, + { + "label": "microg_nointernet", + "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 + } + }, + { + "label": "rvdownload_unofficial", + "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 + } + }, + { + "label": "false", + "threshold": 0, + "reply": null } ], "ocrResponses": [ { "regex": "is not installed", "reply": { - "title": "Why can't I download videos", - "description": "Because you didn't install the app.", + "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 } } ] -} \ No newline at end of file +} diff --git a/apps/bot-telegram/src/config.json b/apps/bot-telegram/src/config.json index 3b35ee3..ebf05f4 100644 --- a/apps/bot-telegram/src/config.json +++ b/apps/bot-telegram/src/config.json @@ -5,21 +5,102 @@ }, "responses": [ { - "label": "revanced_download", - "threshold": 0.85, - "reply": { - "title": "How to download ReVanced?", - "desc": "You don't." - } - } - ], - "ocrResponses": [ + "label": "revanced_crash", + "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 + } + }, { - "regex": "is not installed", - "reply": { - "title": "Why can't I download videos", - "desc": "Because you didn't install the app." - } + "label": "rvmanager_abort", + "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 + } + }, + { + "label": "revanced_download", + "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 docshttps://github.com/revanced/revanced-cli/tree/main#-documentation-and-guides-of-revanced-clihttps://github.com/revanced/revanced-cli/tree/main#-documentation-and-guides-of-revanced-cli](https://github.com/revanced/revanced-cli/tree/main#-documentation-and-guides-of-revanced-cli)", + "color": 14908858 + } + }, + { + "label": "androidtv_support", + "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 + } + }, + { + "label": "revanced_nodownloader", + "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 + } + }, + { + "label": "revanced_casting", + "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 + } + }, + { + "label": "microg_download", + "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 + } + }, + { + "label": "microg_nointernet", + "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 + } + }, + { + "label": "rvdownload_unofficial", + "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 + } + }, + { + "label": "false", + "threshold": 0, + "reply": null } - ] -} \ No newline at end of file + ], + "ocrResponses": [ + { + "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 + } + } + ] + } + +