From 9b15f73c3f017c9b3cee315b00f099b7cbfef89a Mon Sep 17 00:00:00 2001 From: GramingFoxTeam Date: Sat, 19 Aug 2023 17:14:35 +0300 Subject: [PATCH] fix(bot-discord): consistent embed (#20) --- apps/bot-discord/src/config.json | 24 +++++++++++----------- apps/bot-discord/src/utils/reportToLogs.js | 4 +++- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/apps/bot-discord/src/config.json b/apps/bot-discord/src/config.json index 9d37f72..6ef14ea 100644 --- a/apps/bot-discord/src/config.json +++ b/apps/bot-discord/src/config.json @@ -74,7 +74,7 @@ "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 + "color": 5150960 }, "closeThread": false, "lockThread": false @@ -85,7 +85,7 @@ "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 + "color": 5150960 }, "closeThread": false, "lockThread": false @@ -96,7 +96,7 @@ "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 + "color": 5150960 }, "closeThread": false, "lockThread": false @@ -107,7 +107,7 @@ "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 + "color": 5150960 }, "closeThread": false, "lockThread": false @@ -118,7 +118,7 @@ "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 + "color": 5150960 }, "closeThread": false, "lockThread": false @@ -129,7 +129,7 @@ "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 + "color": 5150960 }, "closeThread": false, "lockThread": false @@ -140,7 +140,7 @@ "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 + "color": 5150960 }, "closeThread": false, "lockThread": false @@ -151,7 +151,7 @@ "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 + "color": 5150960 }, "closeThread": false, "lockThread": false @@ -162,7 +162,7 @@ "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 + "color": 5150960 }, "closeThread": false, "lockThread": false @@ -173,7 +173,7 @@ "reply": { "title": "Why do videos fail to play?", "description": "Check [this](https://discord.com/channels/952946952348270622/954833032114733086/1121235521801310229) announcement.", - "color": 14908858 + "color": 5150960 }, "closeThread": false, "lockThread": false @@ -192,7 +192,7 @@ "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 + "color": 5150960 } }, { @@ -200,7 +200,7 @@ "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 + "color": 5150960 } } ] diff --git a/apps/bot-discord/src/utils/reportToLogs.js b/apps/bot-discord/src/utils/reportToLogs.js index 7f9df7a..01ff74a 100644 --- a/apps/bot-discord/src/utils/reportToLogs.js +++ b/apps/bot-discord/src/utils/reportToLogs.js @@ -5,7 +5,9 @@ export default async function reportToLogs(config, client, action, message, { re const actionTitle = `${actionUpper} ${actionTo.tag}`; const actionEmbed = new EmbedBuilder() .setThumbnail(actionTo.avatarURL()) - .setTitle(actionTitle); + .setTitle(actionTitle) + .setColor(5150960) + .setFooter({ text: 'ReVanced', iconURL: client.user.avatarURL() }); const fields = [ { name: 'Action', value: `${actionTo.toString()} was ${action} by ${actionBy.toString()}` }