fix(bot-telegram): fix configuration

This commit is contained in:
GramingFoxTeam
2023-07-26 20:02:06 +03:00
parent 15248ab78b
commit d03c90f6d6
3 changed files with 12 additions and 22 deletions

View File

@@ -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)."
}
}
]

View File

@@ -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]

View File

@@ -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]