[cmd](tts) remove embed footer for tts commands

This commit is contained in:
derpystuff 2022-06-07 15:10:46 +02:00
parent b2beb77ae1
commit 72828b408f
3 changed files with 7 additions and 2 deletions

View file

@ -31,7 +31,7 @@ module.exports = {
let audio = await imtranslator(context, args.text, args.voice) let audio = await imtranslator(context, args.text, args.voice)
let diff = (Date.now() - s) let diff = (Date.now() - s)
await context.editOrRespond({ 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" } file: { value: audio.response.body, filename: "tts.wav" }
}) })
}catch(e){ }catch(e){

View file

@ -32,7 +32,7 @@ module.exports = {
let audio = await tiktok(context, args.text, args.voice) let audio = await tiktok(context, args.text, args.voice)
await context.editOrRespond({ 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" } file: { value: audio.response.body, filename: "tiktok.mp3" }
}) })

View file

@ -12,6 +12,11 @@ const embedTypes = Object.freeze({
} }
} }
}, },
"defaultNoFooter": (context) => {
return {
color: COLORS.embed
}
},
"warning": (context) => { "warning": (context) => {
return { return {
author: { author: {