Changed libreddit links to privacydev's
This commit is contained in:
parent
294e68db7d
commit
5f6809c867
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue