mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
[cmd](tts) remove embed footer for tts commands
This commit is contained in:
parent
b2beb77ae1
commit
72828b408f
3 changed files with 7 additions and 2 deletions
|
@ -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){
|
||||||
|
|
|
@ -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" }
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,11 @@ const embedTypes = Object.freeze({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"defaultNoFooter": (context) => {
|
||||||
|
return {
|
||||||
|
color: COLORS.embed
|
||||||
|
}
|
||||||
|
},
|
||||||
"warning": (context) => {
|
"warning": (context) => {
|
||||||
return {
|
return {
|
||||||
author: {
|
author: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue