From 2db56669f88a550f338dc2f6abf7d3bd34381cf0 Mon Sep 17 00:00:00 2001 From: Logan Gartner Date: Fri, 1 Jul 2022 02:16:53 -0600 Subject: [PATCH] Cleaned up clusterfuck slightly --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 8ab70da..d3a5cd1 100644 --- a/main.go +++ b/main.go @@ -163,7 +163,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) { } // Get rid of the stupid short URL that Shitter appends to everything - message.Content = fmt.Sprintf("%s \"%s\"\n", message.Content, strings.Trim(regexp.MustCompile("https://t.co/.*").ReplaceAllString(result.Info.Description, ""), " ")) // Still ugly + message.Content = message.Content + fmt.Sprintf("\"%s\"\n", strings.Trim(regexp.MustCompile("https://t.co/.*").ReplaceAllString(result.Info.Description, ""), " ")) // Still ugly var choice goutubedl.Format for i := len(result.Formats())-1; i >= 0; i-- {