Cleaned up clusterfuck slightly

This commit is contained in:
Logan G 2022-07-01 02:16:53 -06:00
parent 539a948b5f
commit 2db56669f8
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -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-- {