Changed libreddit links to privacydev's

This commit is contained in:
Logan G 2023-06-13 17:32:39 -06:00
parent 294e68db7d
commit 5f6809c867
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -224,7 +224,7 @@ func messageCreate(session *discordgo.Session, message *discordgo.MessageCreate)
} else if output, _ := regexp.MatchString("(http.*reddit\\.com/r/\\.*)", url); output {
log.Println("Reddit detected.")
response.Content = response.Content + fmt.Sprintf("\n<%s>", regexp.MustCompile("http.*reddit\\.com").ReplaceAllString(url, "https://libreddit.spike.codes"))
response.Content = response.Content + fmt.Sprintf("\n<%s>", regexp.MustCompile("http.*reddit\\.com").ReplaceAllString(url, "https://libreddit.privacydev.net"))
// Reddit's native format is 'mpegts', which Discord cannot preview. This code however does produce a usable video with audio.
/*