From 72828b408ff8dd81356ac90b43b68ffc7100a3c7 Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Tue, 7 Jun 2022 15:10:46 +0200 Subject: [PATCH] [cmd](tts) remove embed footer for tts commands --- commands/interaction/tts/texttospeech.js | 2 +- commands/interaction/tts/tiktok.js | 2 +- labscore/utils/embed.js | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/commands/interaction/tts/texttospeech.js b/commands/interaction/tts/texttospeech.js index beaedf7..7820f2f 100644 --- a/commands/interaction/tts/texttospeech.js +++ b/commands/interaction/tts/texttospeech.js @@ -31,7 +31,7 @@ module.exports = { let audio = await imtranslator(context, args.text, args.voice) let diff = (Date.now() - s) await context.editOrRespond({ - embeds: [createEmbed("default", context, { description: `${icon("audio")} Audio Generated in ${highlight(audio.timings + "s")}.` })], + embeds: [createEmbed("defaultNoFooter", context, { description: `${icon("audio")} Audio Generated in ${highlight(audio.timings + "s")}.` })], file: { value: audio.response.body, filename: "tts.wav" } }) }catch(e){ diff --git a/commands/interaction/tts/tiktok.js b/commands/interaction/tts/tiktok.js index 0e53757..abc1edd 100644 --- a/commands/interaction/tts/tiktok.js +++ b/commands/interaction/tts/tiktok.js @@ -32,7 +32,7 @@ module.exports = { let audio = await tiktok(context, args.text, args.voice) await context.editOrRespond({ - embeds: [createEmbed("default", context, { description: `${icon("audio")} Audio Generated in ${highlight(audio.timings + "s")}.` })], + embeds: [createEmbed("defaultNoFooter", context, { description: `${icon("audio")} Audio Generated in ${highlight(audio.timings + "s")}.` })], file: { value: audio.response.body, filename: "tiktok.mp3" } }) diff --git a/labscore/utils/embed.js b/labscore/utils/embed.js index aeaf5cb..2f6d5dd 100644 --- a/labscore/utils/embed.js +++ b/labscore/utils/embed.js @@ -12,6 +12,11 @@ const embedTypes = Object.freeze({ } } }, + "defaultNoFooter": (context) => { + return { + color: COLORS.embed + } + }, "warning": (context) => { return { author: {