change nitter link

This commit is contained in:
Lera Elvoé 2023-05-08 19:06:06 +03:00
parent cd46c4944f
commit cba680d6e1
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc

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.it%s>", result[4])) s.ChannelMessageSend(m.ChannelID, fmt.Sprintf("<https://nitter.lacontrevoie.fr/%s>", result[4]))
} }
} }
} }