Cleaned up clusterfuck slightly
This commit is contained in:
parent
539a948b5f
commit
2db56669f8
1 changed files with 1 additions and 1 deletions
2
main.go
2
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
|
// 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
|
var choice goutubedl.Format
|
||||||
for i := len(result.Formats())-1; i >= 0; i-- {
|
for i := len(result.Formats())-1; i >= 0; i-- {
|
||||||
|
|
Loading…
Reference in a new issue