minor UX tweaks

This commit is contained in:
2026-03-05 21:42:56 -05:00
parent 890a0dd5c9
commit 13bd3b82db
3 changed files with 15 additions and 12 deletions

View File

@@ -13,7 +13,6 @@ import (
)
func main() {
out_dir := os.Getenv("OUT_PATH")
temp_dir := os.Getenv("TEMP_PATH")
bot_token := os.Getenv("DISCORD_TOKEN")
@@ -273,8 +272,7 @@ func main() {
response := ""
if state.URL != "" {
// Respond immediately to prevent timeout
response = fmt.Sprintf("🚀 Starting download...\nURL: %s\nVideo: %s\nAudio: %s\n\nYou'll receive an update when the download completes!",
state.URL, state.VideoFormatID, state.AudioFormatID)
response = fmt.Sprintf("%s **Starting download**", loading_emoji)
// Start async download after responding
go func() {
@@ -327,7 +325,7 @@ func main() {
err := s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{
Type: discordgo.InteractionResponseChannelMessageWithSource,
Data: &discordgo.InteractionResponseData{
Content: "🔍 Fetching available formats...",
Content: fmt.Sprintf("%s Fetching available formats...", loading_emoji),
Flags: discordgo.MessageFlagsEphemeral,
},
})