change nitter link #1

Merged
furtidev merged 2 commits from yagich/the-farting-whale:replace-nitter into main 2023-05-08 16:07:44 +00:00
Showing only changes of commit 94c9dd3d57 - Show all commits

View File

@ -83,7 +83,7 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
if result[2] == "https://www.reddit.com" || result[2] == "https://reddit.com"{ if result[2] == "https://www.reddit.com" || result[2] == "https://reddit.com"{
s.ChannelMessageSend(m.ChannelID, fmt.Sprintf("<https://tedd.it%s>", result[4])) s.ChannelMessageSend(m.ChannelID, fmt.Sprintf("<https://tedd.it%s>", result[4]))
} else if result[2] == "https://www.twitter.com" || result[2] == "https://twitter.com" { } else if result[2] == "https://www.twitter.com" || result[2] == "https://twitter.com" {
s.ChannelMessageSend(m.ChannelID, fmt.Sprintf("<https://nitter.lacontrevoie.fr/%s>", result[4])) s.ChannelMessageSend(m.ChannelID, fmt.Sprintf("<https://nitter.lacontrevoie.fr%s>", result[4]))
} }
} }
} }