Switched from nitter.privacydev to nitter.poast

Their instance seems to work a lot more often
This commit is contained in:
Logan G 2024-06-16 15:40:35 -06:00
parent a6384e362e
commit 0356a5c0c7
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -52,7 +52,7 @@ func messageCreate(session *discordgo.Session, message *discordgo.MessageCreate)
} }
} }
response.Content = response.Content + fmt.Sprintf("\n<%s>", regexp.MustCompile("(http.*twitter.com)|(http.*x.com)").ReplaceAllString(url, "https://nitter.privacydev.net")) response.Content = response.Content + fmt.Sprintf("\n<%s>", regexp.MustCompile("(http.*twitter.com)|(http.*x.com)").ReplaceAllString(url, "https://nitter.poast.org"))
result, err := goutubedl.New(context.Background(), url, goutubedl.Options{}) result, err := goutubedl.New(context.Background(), url, goutubedl.Options{})
if err != nil { if err != nil {