minor UX tweaks
This commit is contained in:
@@ -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,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user